|Don't get any closer if you don't want me to throw any s***
From the article:
Psychologists have long known that many people are prejudiced towards others based on group affiliations, be they racial, ethnic, religious, or even political.
To figure out whether monkeys distinguish between insiders (i.e. those who belong to their group) and outsiders (i.e. those who don’t belong), the researchers measured the amount of time the monkeys stared at the photographed face of an insider versus outsider monkey. Across several experiments, they found that the monkeys stared longer at the faces of outsiders. This would suggest that monkeys were more wary of outsider faces.
However, it is also possible that outsiders simply evoke more curiosity. To rule this out, the researchers took advantage of the fact that male rhesus monkeys leave their childhood groups once they reach reproductive age. This allowed the researchers to pair familiar outsider faces (monkeys that had recently left the group) with less familiar insider faces (monkeys that had recently joined the group). When presented with these pairs, the monkeys continued to stare longer at outsider faces, even though they were more familiar with them. The monkeys were clearly making distinctions based on group membership.
Source -> http://www.scientificamerican.com/article.cfm?id=evolution-of-prejudice