Most Mexicans have no problem whatsoever with foreigners living in Mexico, and many are actually proud that they choose Mexico as their new home.
Especially if you respect and love the culture, learn Spanish, and get involved in making the country a better place.
Don’t fall for the online propaganda.