There's a prerequisite to building an effective fence. It is "having the will to do bad things to those who attempt to scale it".
Even a modest 8 foot high chain link fence would be effective, though, if the crossers knew that there were US Marine snipers watching it, with orders to shoot anybody trying to scale the fence. But the US does not have the will to go that far.
Rick Perry, is that you?