A wall is a completely absurd thing, for reasons other than cost. Even if it was done and paid for, it would be pointless
A large portion of illegal immigrants are "overstays", that is, they enter the country entirely legally on a temporary visa (oftentimes through sea or air, which a wall will never prevent) and then just overstay the duration of their visa. Improving security at the border will never prevent that