Etymology
Today it means: In an incorrect manner. Full definition →
From incorrect + -ly or in- + correctly.
Etymology from Wiktionary, CC BY-SA 4.0.