Travel Outside USA

Can some please share his or her experience or suggestions-

  1. Is it safe to travel outside USA when PERM is in process and stamped H1B is only valid for 3 months from the return date (the planned return date to usa)? Do not have new H1B extension.
    Falling shot nearly a month for 365 days criteria(from maxed out date) to file 7th year extension, incase needed.

  2. What will be the best and safe option? go out and return in a month? Or wait till the end near to H1B maxed out date and leave the country couple weeks before the maxed out date and come back with new H1B stamping after i-140 gets approved? Or anything other option that i am not aware?