It is illegal and it can be both civil and criminal.  In fact being here after being denied is a criminal offense.  Having false papers (of any kind) is a criminal offense.  About the only 'civil offense' is staying past the end of a visa and doing positively nothing more.  Earn a penny and its a criminal offense.