It shall be the duty of every railroad company maintaining an arm gate at any crossing to provide for the closing of the gate at the approach of engines or trains and to have the gate immediately opened when the engine or train has passed, so as to interfere as little as possible with public travel over the crossing.
(Code 1965, § 23-5)