Complex sentence: Magpies place themselves either side of the bird of prey so that it will be attacked from behind should it strike a defender, and harass and drive the raptor to some distance beyond the territory.
Split into simpler sentences: Magpies place themselves either side of the bird of prey so that it will be attacked from behind should it strike a magpie defender. They work together to drive the raptor to some distance beyond the territory.