When an invading insect threatens an ant colony's territory or food sources, the ants will vigorously swarm over the invader, biting or stinging it.
Facts
Ants attack invaders that threaten the colony or its food.
Ants can even do this to aggressive flying bugs like wasps.
Ants don't attacke all bugs.
Riodinid caterpillars are a favorite prey for wasps, but ants eat their secretions and live with them in harmony in South America.
Evaluate
Claims 2 and 4 both deal with wasps. If ants protect their food sources from wasps and these caterpillars are a food source for the ants, maybe the ants protect the caterpillars when the wasps try to eat them?