It is hereby declared to be unlawful to anchor navigation craft to railroad tracks, railroad bridges, railroad signals, railroad switches, or other railroad structures. The mooring of navigation craft against railroad embankments or other railroad structures so as to foul or otherwise obstruct or interfere with the operation over the railroad of passenger trains, freight trains, locomotives, or other self-propelled equipment, is likewise declared to be unlawful.
610 ILCS 100/1