Whenever a motor vehicle is being operated on a roadway or shoulder adjacent thereto during the times specified in section 39-21-01, the driver shall use a distribution of light, or composite beam, directed high enough and of sufficient intensity to reveal persons and vehicles at a safe distance in advance of the vehicle, subject to the following requirements and limitations:
1. Whenever a driver of a vehicle approaches an oncoming vehicle within five hundred feet [152.4 meters], such driver shall use a distribution of light, or composite beam, so aimed that the glaring rays are not projected into the eyes of the oncoming driver. The lowermost distribution of light, or composite beam, specified in subsection 2 of section 39-21-20 must be deemed to avoid glare at all times, regardless of road contour and loading.2. Whenever the driver of a vehicle follows another vehicle within three hundred feet [91.44 meters] to the rear, the driver shall use a distribution of light permissible under this chapter other than the uppermost distribution of light specified in subsection 1 of section 39-21-20.