After using EAD, your status
becomes pending status. Then if your 485 is denied, which happens very rarely, you will lose your legal status immediately and will have to leave the US.
After you use EAD and before your 485 is approved/denied, you can still return to your H1B status.