I've thought of this as a solution, as well. I'd bet, however, that the leftists and illegal alien apologists in the government would use environmental/endangered species laws or some such as a pretext to stop landowners from building such a fence.
I think that's already been mentioned as a "problem" with building the fence. It ranks right up there with "a fence would send the wrong message to Mexico".