Whenever the lines or cables of any such company are erected or constructed over the rails of any steam or electric railroad within the State of Illinois, such company shall maintain such wires or cables not less than 25 feet above the surface of the rails. Any failure or refusal so to do shall constitute a petty offense and shall render such company liable to a fine of not more than $50 for each offense, to be recovered upon conviction thereof in the circuit court. All fines collected by virtue of this act shall be paid into the common school fund of the township in which the offense is committed.
220 ILCS 65/3