No person shall operate any railroad train across any street or alley without giving a warning of its approach as required by state law; nor shall be made such crossing at a speed in excess of seven (7) miles per hour. It shall also be unlawful for any person operating a railroad train to block or obstruct any street or alley for a period of more than five (5) consecutive minutes.