No, not range. It is because like baton or long pole (already used by PAP) are hard to push and keep distance.
It is cumbersome, but so long as you can point at the attacker you can keep them away and even wound them if you have spikes.
But a pistol can only be effective in keeping the distance if either 20 meters out, or kill within 10 meters.
The video I mentioned demonstrated that exactly that an attack can reach the officer within less than a second if his initial position was within 10 meters to the officer. But even if the officer shot him (so long as not killing him), that sub-second is enough to kill the officer with a stab at the hear or neck.
Here is one of the videos that I have watched.
. although it is in a different scenario than terrorist attack, it demonstrated how deadly a knife against a pistol within close range. You only have a plit of second (within 5 meters) or max one second (within 10 meters) to point and kill even if you have the gun drawn already.
That is probably why some armies still retain bayonet for close courter combat even today instead of relying purely on pistol (I know the US army as one). But apparently some other countries think otherwise. And essentially in a close range, PAP and army soldier are in the same situation.