The best way to ensure that no immigrants take urrr jawbs is to have a shitty economy. It worked great in reducing Mexican immigration during the recent recession. Of course, it caused a
lot of damage for many people in the US, too.
Perhaps the best answer for everyone is to worry about growing the pie, rather than keeping people out.