when did you loss your job? there is one month grace period, it is legal for you to stay within this month. after grace period, it will be illegal to stay in USA without new job offer.