There’s some kind of rule about having $23,000 in savings, or 300 days of minimum wage (by their standards) in your possession.
The one factor that someone mentioned to a couple of years ago...when you get a 60-day or 90-day visa...you better renew it on time or plan on exiting the country as required. You don’t want to have any Mexican cop standing at your door about overstaying your visa.
Mexican law also says that the President of the Republic may order the removal of any non-citizen from Mexican soil for ANY reason.
No peon circuit judges overruling policy there.