nt so to do, or wilfully misapplies, moneys, funds, credits or other property in his possession by virtue of his appointment or employment, shall be guilty of larceny and shall be punished by imprisonment in the state prison for not more than ten years, or by a fine of not more than one thousand dollars and imprisonment in a jail or house of correction for not more than two years.