If a child is old enough to be crossing the street without an adult present (holding their hand), then they're old enough to be looking both ways before crossing.
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?