Section 28. Whoever gives or delivers to a prisoner in any correctional institution, or in any jail or house of correction, any drug or article whatever, or has in his possession within the precincts of any prison herein named with intent to give or deliver to any prisoner any such drug or article without the permission of the superintendent or keeper, shall be punished by imprisonment in the state prison for not more than five years, or in a jail or house of correction for not more than two years, or by a fine of not more than one thousand dollars.