What is the meaning of Foolishly?

In a foolish manner.

Without good judgment.

Source: wiktionary.org