Fine. We give Mexico back the land we took.  Would that stop illegal immigration? Would we have the right to enforce immigration law?

Seems to me---the moral issue of whose land is whose and who stole from who makes for a great discussion--but does not seem to be relevant to illegal immigration.