Canada would be insane to not beef up its military at this point. Mexico should, too.
But Mexico using conventional military force to deter America? That's completely absurd.
How many people in the middle east did we blow up or kill? For 20 years. For a supposed outcome we had no chance of ever getting. Multiple presidents even.
The deterrence effect of an occupation didn't stop Russia, did not stop the USA, does not stop someone who believes you can just bomb the occupied lands harder until all resistance is "quiet", and doesn't seem to be stopping China from preparing itself for the occupation of Taiwan.
(IMO they should get some of these things even if there's no chance of the US invading, given how much firepower some of the cartels have.)