A U.S. Border Patrol officer body searches an undocumented immigrant after he illegally crossed the U.S.-Mexico border and was caught near Rio Grande City, Texas.

President-elect Donald Trump's harsh stance on Mexican jobs and immigration could end up backfiring — by prompting more Mexicans to look for work in the United States.

Since the Great Recession, improved job prospects in Mexico have prompted a greater number of unauthorized Mexican immigrants moving from the United States back to Mexico than the other way around, immigration data show. Many of those new jobs in Mexico have come about thanks to a rising amount of trade between the two countries since 1994, when NAFTA went into effect.