A person in command or charge of a vessel, who, within this state, willfully wrecks, sinks, or otherwise injures or destroys it or any of its cargo, or willfully permits the same to be wrecked, sunk, or otherwise injured or destroyed, with intent to prejudice or defraud a person, is guilty of a felony.