Illegitimately has 3 different meanings across 1 category:
Adverb
in a manner disapproved or not allowed by custom
"He acted illegitimately when he increased the rent fourfold"
of biological parents not married to each other
"this child was born illegitimately"
In an illegitimate manner.