A wall doesn't solve the problem of economic disparity that drives immigration from a poorer one to a richer.
It's human nature to want to help one's family to have a good quality of life, and to not live in poverty. A fence, wall, or moat is not going to stop this desire. There's
always a way through, around, under, and over.