Also, if government of Mexico ever decides to invite the People's Liberation Army into Mexico to help Mexico defend itself
And if that invitation happened only after Mexico was invaded by the US (on as grounds as equally stupid and unprovoked as Russia's current invasion of Ukraine) -- then I'm sure we can trust that you will not only unequivocally condemn that aggression, but solidly champion Mexico's right to defend itself against it by whatever means necessary.
Such dictatorships propped by a foreign power from another side of the planet at the expense of the safety and well-being of people in the Americas looks exactly the kind of thing Monroe Doctrine sought to prevent.
Still, "legitimate" is a weird choice of words to describe unnecessary and provocative WMD deployments in any context.
Also, if government of Mexico ever decides to invite the People's Liberation Army into Mexico to help Mexico defend itself, and the PLA accepts the invitation, I want and expect my government (i.e., Washington) to stop them -- with organized violence if necessary such as is currently happening in Ukraine.