I see the critical point sailed over your head yet again. Namely, the wall does not have to be airtight - it would be one component of a larger enforcement.
Using your logic, we shouldn't bother with prisons, because convicts escape occasionally.
Prisons are not a waste of resources. Even a 95% effective barrier would be.