They are usually passive animals, just don't accidentally hit them. If you do attack them try and separate them from their comrades so they will be easier to kill. If you are looking for pelt, I advise using a Wolf to collect it if that's an option to you. If not, use an axe or pickaxe to collect.

More Mammoth Encountering Tips