You need to leave US or stay in US illegally if I-485 is denied unless you have a legal status such as H-1, etc.