Can a burglar find another way to get inside? Sure. But that doesn't mean you don't lock the front door. I'm sure that illegals could find another means, and the law could adapt to that too, but the point is to make being here illegally as hard as possible so they self-deport and others are discouraged from trying.