Unwisely has 2 different meanings across 1 category:
Adverb
without good sense or judgment
"He acted foolishly when he agreed to come"
In an unwise manner; foolishly.
Unwisely comes from Middle English and Old English, where it originally meant "foolishly." It is formed by combining the prefix un- with the word wisely.