In a manner acceptable to common custom; "you cannot do this legitimately!".
In a lawfully recognized manner; "let's get married so our child can be born legitimately".