When dealing with pedestrians, a driver must:

You must do everything you can to prevent striking a pedestrian or another vehicle, regardless of the circumstances. It is the driver’s basic responsibility to be alert to pedestrians and to yield the right-of-way to all pedestrians, even if the pedestrian is crossing the street where they should not be.
DMV Writen Test