Every person who, being the master or commander of any vessel or boat arriving from a foreign country, shall knowingly bring into this state a person who has been or is a foreign convict of any offense, which, if committed in this state would be punishable under the laws thereof, shall be guilty of a misdemeanor.