All vessels while lying in the harbor or at any of its slips or piers shall carry their anchors in such a manner that they shall not in any way do damages to or come in contact with any vessel that is coming in or going out of the harbor or moving about therein; and in entering or leaving the harbor shall be moved slowly and under a low head of steam, or short sail, so as not to endanger any other vessel. All steamboats, vessels, canal boats or other watercrafts, shall keep outboard, during the night, a conspicuous light, and shall have extinguished, or secured safely at dark, all fires that may be kept on board.