Yeah, but you still have them. A huge factor is security. It's not 100% perfectly effective, but effective enough to save countless people from crime and harm - ancient knowledge.
Most immigrants crossing the border are trying to seek asylum. Most criminals and their drugs come in on boats. A wall is useless.