Definition of "Illegitimately" :
adverb: of biological parents not married to each other
"This child was born illegitimately."
adverb: in a manner disapproved or not allowed by custom
"He acted illegitimately when he increased the rent fourfold."