All animals can be mean if they feel cornered, or are scared, or angry - they react on instinct. Even pets can do that, and they're trained and bred to live in a human environment.
Now I have a cat and a dog, but once I had two cats plus the dog - one of the cats passed away from old age...