Certain prey animals, especially gazelles, engage in dramatic leaps known as stotting. This behavior makes them highly visible to predators. One theory for why they do this is as a fitness signal to predators, who generally want to go for the easy pickin's, not the ones who present a challenge, and represent taking on more effort and risk of injury or just wasted energy.
https://en.wikipedia.org/wiki/Stotting
Most lions also know not to prey on humans, for similar reasons: if a lion took a human, it risks being hunted down by other humans related to their prey. Most "man-eating" lions or tigers are starving or injured, therefore desperate, and lions are largely seen in Africa as pest creatures who take livestock.
(Hippopotamuses, by contrast, give absolutely no fucks and will kill you on sight. Africans consider the hippopotamus to be the fiercest animal by far, even more so than the lion.)