Physical barriers are just force multipliers. Agree, it is not necessary to have fences across the entire border. You put up double fencing where it makes sense.
And landmines; lots, and lots, of landmines.
Where the wall is, and especially where you don’t want to build it.