Answer :
Well, technically what happens in natural selection is that the organisms with favorable traits that help them survive live long enough to pass their traits down through offspring. All the good traits passed down to the next generation help them. It would bring certain behaviors that are crucial for survival. The traits, if passed down for long enough, can affect the whole species, and eventually, the whole species can have that trait (ex. speed, agility, etc.)
Animal behavior involves all the ways animals communicate with other organisms and the physical environment. Behavior is molded by natural selection. Many behaviors immediately enhance an organism's robustness, that is, they maintain it persists and reproduces .natural selections among the animals are base on their ways or their role in the food chain whether they are the predator or a prey. Natural selection is the one you will assess if you are gonna leave or die but it doesn't mean that there is no way of survival. I think their role in the chain mold them and explained to them how to endure in the wild.