Bananas aren't going extinct. However most bananas consumed in the US are Cavendish bananas which are essentially all clones of each other and are susceptible to Panama disease which is killing them all. Worst case we have to switch to another variety.
There really is no other logical way to approach this. If they went the other way and prioritized the pedestrian, a psychopath could sprint back and forth across a busy freeway, causing accident after accident and injuring or killing lots of innocent passengers.