And if the pedestrian is a child?
That was a kindergarten lesson, and in my experience, those kids tend to be better about it than most people are when they're older.
If they're not going to do that, what is stopping them from just wandering into a road nowhere near a traffic light anyway?