Except when necessary to avoid conflict with other traffic or in compliance with the directions of a traffic or police officer or traffic sign or signal, no operator of a vehicle shall stand or park the vehicle on a sidewalk.