Well, if the army is able to close off the border with Mexico, they will arrive in America by using rafts in the waters around us. And I'm not even talking about taking advantage of the undefended border with Canada.
The best way to solve this problem is to develop the Mexican economy, to curtail corruption and formally end the war on drugs. By then, just maybe people will not leave Mexico searching for a better life in America!