***not a teacher***
"They worked together to protect them from dangerous animals and other enemies''
In this sentence, it sounds to me, there are two groups of people with the first trying to protect the other. However, by replacing 'them' with 'themselves', you would suggest there's only one group trying to protect themselves and no other. You can get better answers if you're patient enough!
Student or Learner