Any person violating any of the provisions of the foregoing Section, under circumstances that endanger the life of any railroad passenger or any railroad employee, shall be guilty of a Class 4 felony.