There are security systems that spray a dense lung irritant fog, use extreme volume speakers, and emit a blinding flash bang level strobe light.. They are expensive but effective.
The security gates appear to fail early. Probably an older building without good mounting options, the fasteners pulled out of the walls.
If properly installed a good gating system can keep thieves out until police arrive. I helped install a system once, the instructions require mounting into solid poured concrete to get the full rating, using wedge anchors pretty made them worthless.