I’m sorry, you can’t have it both ways. If you’re actually serious about stopping, or at least slowing, illegal immigration you have to attack it from both ends.
In my world the focus would be on those that knowingly hire illegal immigrants. The illegals would quickly go home on their own if they couldn’t find work.
Much cheaper and more effective in both the long and short run.
You are absolutely right.