(a) When any public road or highway is laid out, opened, repaired, or improved by authority of any general law of the state, by any special act of the General Assembly, by order of any county court, or in any other lawful manner, and the road or highway as promulgated shall cross or intersect any railroad right-of-way or track at grade, the commissioners of the road or highway, or such other authorities as may be engaged in the construction, repair, or improvement thereof, shall lay out and construct the road or highway so as to cross the railroad right-of-way and tracks at right angles. However, if the topography of the ground at any crossing will not reasonably permit the crossing to be constructed at right angles to the railroad right-of-way or track, then the road or highway crossing may be made as nearly at right angles to the railroad right-of-way and track as may be practicable.
(b) Failure of the commissioners or other authorities engaged in the construction, repair, or improvement of any road or highway to so lay out and provide for the construction of the crossings shall entitle and authorize any interested person or property owner to enjoin the construction of the road or highway crossing in any other manner.