The guards did the some stupid shit to me as well. I had a gun in my main hand without noticing, I was running around with it for ages until a guard asked me to put it away. When I actually put it away, they shot me. I had been running around in front of them, crafting for like 10 minutes.
If that were put it the game, it would have to be the alert from Metal Gear Solid: The Twin Snakes