I mean, what did these dudes actually think would happen? Shit, even if it wasn't loaded and they tried to snatch it back from it, the monkey would most likely beat them pretty bad with the gun. Chimps are not to be fucked with, just ask that lady that got her face eaten off.
Notice how it raised the gun overhead at the end to signal it's dominance.