The answer to this question would be: discrimination
Discrimination has its own adaptive value that was beneficial to the survival. By being discriminative to the predator, someone can perceive danger faster thus can react more quickly. Other than a lion, this discrimination can be triggered in snakes, spider, or other dangerous animals.