Whoever, being the master of a steamship or other vessel referred to in section
151 of Title
46, except as otherwise expressly provided by law, takes, carries, or has on board of any such vessel any nitroglycerin, dynamite, or any other explosive article or compound, or any vitriol or like acids, or gunpowder, except for the ship’s use, or any article or number of articles, whether as a cargo or ballast, which, by reason of the nature or quantity or mode of storage thereof, shall, either singly or collectively, be likely to endanger the health or lives of the passengers or the safety of the vessel, shall be fined under this title or imprisoned not more than one year, or both.