The making of profit, directly or indirectly, by the county treasurer, tax collector, treasurer of any board of trustees, or any officer whatever, out of any money belonging to a county, the custody of which the county treasurer or other officer is charged with, by loaning or otherwise using it, or depositing the same in any manner contrary to law, or a removal by any such officer or by his consent of such moneys, or a part thereof, and placing it elsewhere than as provided by law, shall constitute a felony, and, on conviction thereof, shall subject such officer to imprisonment in the state penitentiary for a term not exceeding two (2) years or a fine not exceeding five thousand dollars ($5,000.00), or to both such fine and imprisonment, and the officer offending shall be liable on his official bond for all profits realized for such unlawful use of such funds.
Miss. Code § 27-105-345