The driver of a vehicle or streetcar must not suddenly apply the brakes in a way that causes the vehicle or streetcar to stop suddenly or sharply reduce speed, unless compelled to do so in order to prevent a hazard.
Read this with the articles around it