In an incorrect, unjust, or improper manner.
From 'wrong' (Old English wrang) plus the adverbial suffix '-ly' (Old English -lice). The adverb form developed naturally to describe actions or statements done in a wrong manner.
English speakers distinguish between 'wrongly did something' (incorrect method) and 'wrongly thought something' (incorrect belief), but many languages don't make this difference—they just say one word for 'incorrectly,' showing English has remarkably specific judgment-words.
Complete word intelligence in one call. Free tier — 50 lookups/day.