(A) Whenever any person driving a vehicle approaches a railroad grade crossing under any of the circumstances stated in this section, the driver of the vehicle shall stop within 50 feet, but not less than 15 feet from the nearest rail of the railroad, and shall not proceed until he or she can do so safely. The foregoing requirements shall apply when:
(1) A clearly visible electric or mechanical signal device gives warning of the immediate approach of a railroad train;
(2) A crossing gate is lowered or when a human flagman gives or continues to give a signal of the approach or passage of a railroad train;
(3) A railroad train approaching within approximately 1,500 feet of the highway crossing emits a signal audible from the distance and the railroad train, by reason of its speed or nearness to the crossing, is an immediate hazard; or
(4) An approaching railroad train is plainly visible and is in hazardous proximity to the crossing.
(B) No person shall drive any vehicle through, around or under any crossing gate or barrier at a railroad crossing while the gate or barrier is closed or is being opened or closed.
(47 O.S. § 11-701) (`90 Code, § 20-72)