There’s the rub.
You need armed guards to watch the fence/wall/barrier. Enough of them close enough to every spot to quickly respond.
With that many guards, you don’t need a fancy fence. Barbed wire would work.