"Maintaining safe distance" is the responsibility of the driver in the back. The front driver can apply a smooth break or sudden break according to the situation in front of him....
The driver behind shall anticipate this situation and shall always maintain the safe distance to stop his/her car on seeing the brake lights of the car on front.