Travelling outside of USA and re-entering during Notice Period (not the 60-day grace period)?

Hello, I just got laid off and my last working day is June 28. However, I am under notice period from June 28 to August 26. Although my last working day is on June 29, I was told my firm’s attorneys that my last official day on H1B is August 26 (which is when my notice period ends). My severance pay starts on August 26.

I currently have a valid I-797 and stamped H1B visa. If I travel out of USA, can I re-enter using my current visa, provided I come back before notice period end date (August 26)?

Thanks.

It will be very difficult to explain to the immigration officer at port of entry on who you are going to work for.

I suggest to not leave the US as its risky.