Any officer or employee drawing or approving any warrant drawn on the treasury of any municipality or county of this state in violation of the provisions contained in this article shall be guilty of a misdemeanor and shall be punished as provided by law.