foolishly

In a silly, unwise way that ignores what makes sense.