Nasty neighbour effect
In ethology, the nasty neighbour effect describes the phenomenon whereby territory-holding animals behave more strongly toward familiar conspecific neighbours than to unfamiliar conspecifics. This phenomenon may be generally advantageous to an animal because the heightened response reduces the likelihood of a nearby intruder entering the territory and taking the resources it contains whereas an unfamiliar or distant territory-holder poses less of a threat.