(A) Whenever any person driving a vehicle approaches a railroad grade crossing, that person must exercise due care and caution, as the existence of a railroad track across a highway is a warning of danger, and under any of the circumstances stated in this section, the driver shall stop within 50 feet but not less than 15 feet from the nearest rail of the railroad, and shall not proceed until he 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 a human flagman gives or continues to give a signal of the approach or passage of a railroad train;
(3) A railroad train approaching a highway crossing emits a warning signal and the train, by reason of its speed or nearness to the crossing, is an immediate hazard;
(4) An approaching railroad train is plainly visible and is in hazardous proximity to the crossing;
(5) A railroad train is approaching so closely that an immediate hazard is created.
(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.
(C) The village, with the approval of the Department of Transportation, are authorized to designate particularly dangerous highway grade crossings of railroads and to erect stop signs thereat. When stop signs are erected, the driver of any vehicle shall stop within 50 feet but not less than 15 feet from the nearest rail of the railroad, and shall proceed only upon exercising due care.
(D) At any railroad grade crossings provided with railroad crossbuck signs, without automatic, electric, or mechanical signal devices, crossing gates, or a human flagman giving a signal of the approach or passage of a train, the driver of a vehicle shall in obedience to the railroad crossbuck sign, yield the right-of-way and slow down to a speed reasonable for the existing conditions and shall stop, if required for safety, at a clearly marked stopped line, or if not stop line, 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.
(1) If a driver is involved in a collision at a railroad crossing or interferes with the movement of a train after driving past the railroad crossbuck sign, the collision or interference is prima facie evidence of the driver's failure to yield right-of-way.
(2) No person may drive any vehicle through a railroad crossing if there is insufficient space to drive completely through the crossing without stopping.
(E) It is unlawful to violate any part of this section.
(1) A first conviction shall result in a mandatory fine of $250;
(2) Each subsequent conviction shall result in a mandatory fine of $500.
(ILCS Ch. 625, Act 5 § 11-1201) ('77 Code, § 71.055(A) and (B))