A pedestrian crossing a street is required to look for cars and avoid the road if there is a risk for a collision. It is in the law, even if the crossing sign is green. No person has a right to cross a road or driving a car over a crossing. Both individuals is only allowed to do their thing if it can be done without causing an accident.
The same is true for traffic lights. Green does not mean you have a right to drive through, but rather means that drivers are allowed to drive through if such thing is possible without causing a traffic incident. Basically ever single action on the road under any circumstance is qualified under the condition that it won't cause an accident.
Naturally no pedestrian is going to be charged for being hit by a car unless there is some truly extraordinary circumstances, but the intent of the law is to make people understand that traffic is about mutual communication and responsibility.