In which case is it legal to drive through a crosswalk?

A. When pedestrians are crossing but you have a green light
B. When all pedestrians are in lanes other than yours
C. When you can safely avoid pedestrians in your lane
D. None of the above