Cooperation and conflict in antipredator signalling