You heard of outlawing? It works so well. People immediately stop doing things that are outlawed.
(You are talking about deterring from legal immigration as you have explained in a sibling comment as well, and I am recommending outlawing legal immigration)
I am not against immigration. Though I am not for illegal immigration, nor do I see the need to spend so much money and energy on deportations, while destroying innocent lives, where a standard border many countries maintain every day would suffice.