Whoever sets fire to any vessel of foreign registry, or any vessel of American registry entitled to engage in commerce with foreign nations, or to any vessel of the United States, or to the cargo of the same, or tampers with the motive power of instrumentalities of navigation of such vessel, or places bombs or explosives in or upon such vessel, or does any other act to or upon such vessel while within the jurisdiction of the United States, or, if such vessel is of American registry, while she is