Etymology
Today it means: In an ill-judged manner; unwisely Full definition →
From ill-judged + -ly.
Etymology from Wiktionary, CC BY-SA 4.0.