The problem with Mexico, and much of Latin America, is at best only partly due to the evil gringos. A good number of locals of Hispanic heritage supported the California and Texas breakaways from Mexico because of the corrupt and incompetent government far away in Mexico City. True they got screwed in the long run mostly, but at the time that was not the expectation. Significant US interference in Mexico/Latin America did not start until the late 19th century - issues with EUROPEAN interference such as Maximilian in Mexico, the later Venezuelan Crisis etc was more the rule.
The bottom line is that Mexico, and much of the rest of Latin America, had a home grown dysfunctional social system of a semifeudal nature coupled with endemic corruption that has echoes to this day. Revolving door governments, then replaced by a one party system and the like. This is not a recipe for either home grown investment and entrepeneurship nor foreign investment except in resource extraction (oil, mineral, agriculture). The reality is even if your country has decent natural resources and an adequate population base unless you have an internal society with rule of law, social mobility, educational opportunity, and a reasonable level of civil rights you won't get the sort of development that is being discussed. Extractive industries, initially developed by foreigners with foreign money - sure. These may be nationalized later, usually to the detriment of the industry. Balanced development across the board - no way.
If you want to change Mexican development prior to the recent past, you need to have Mexico be a different society. You could give Mexico all that land, you could sink the USA under the sea, but if Mexican society remains what it was OTL...