That may be possible.
J Charles Ferrari Eng & Nishimura 213.622.2255 The statement above is general in nature and does not constitute legal advice, as not all the facts are known. You should retain an attorney to review all the facts specific to your case in order to receive advise specific to your case. The statement above does not create an attorney/client relationship. Answers on Avvo can only be general ones, as specific answers would require knowledge of all the facts. As such, they may or may not apply to the question.
You should reenter from the country where the visa was issued to minimize problems. You can however reenter from any country. You should not have a problem reentering but no one can guess what CBP officers will do at your port of entry.
This is not legal advice. This is merely a recommendation on how to get what you need from the Court.
Do you have an actual F-1 in your passport? If so, a quick trip to Mexico is fine.
IMMIGRATION LAW PROFESSOR for 10 years -- LEGAL DISCLAIMER: This answer is offered for informational purposes only. It does not constitute an attorney-client relationship.