Every state, county, city, or town treasurer who willfully misappropriates any moneys, funds, or securities received by or deposited with him or her as such treasurer, or who shall be guilty of any other malfeasance or willful neglect of duty in his or her office, is guilty of a class C felony and shall be punished by imprisonment in a state correctional facility for not more than five years or by a fine of not more than five thousand dollars.