This happened in the run-up to World War I, per https://en.wikipedia.org/wiki/Zimmermann_Telegram Mexico then made it clear that they would not be joining an anti-U.S. alliance in the near term, and relations were kept quite cordial throughout. Your argument proves the exact opposite of what you're expecting it to.