Well said threecarjam.
I'm not sure which there are more of:
- Security guards who make up random policies to cover their foibles
- Security guards who have to enforce silly policies they don't agree with
- Losers who berate security guards enforcing just enforcing policies they don't control
Need to rise above the situation and take it on in the right way.
BTW, you have no right to demand a security guard show it to you in writing, but you should have every right to ask them to cite the policy being enforced (if only to self-educate in order to comply

) and then revisit it after the fact if it was fabricated.