The making of profit, directly or indirectly, by any officer of any district, or by any other public officer within the state, out of any contracts entered into by the district, or the use of any money belonging to the district by loaning it or otherwise using it, or by depositing the same in any manner contrary to law or by removal of any money by any such officer or by his consent, and placing it elsewhere than is prescribed, either by law or by the official acts of the board, for the purpose of profit, shall constitute a felony, and on conviction thereof shall subject such officer to imprisonment in the state penitentiary for a term not exceeding two years, or a fine not exceeding five thousand ($5,000) dollars or both fine and imprisonment, and the officer offending shall be liable personally and upon his official bond for all losses to such district, and for all profits realized by such unlawful use of monies.
NMS § 73-17-7