3If any person ships or attempts to ship coal without complying with or in contravention of the foregoing provisions in this schedule, or if the master of a ship commits an offence under section one hundred and forty-two of the Customs Consolidation Act, 1876 (which relates to deviations from coasting voyages), he shall be liable to the same penalty to which a person is liable under section one hundred and eighty-six of the Customs Consolidation Act, 1876, for illegally importing goods the importation of which is prohibited.