Any tax collector or other person engaged in collecting the revenues of the state who buys, sells, or otherwise trades in state warrants, state certificates, or other securities of the state must, on conviction, be imprisoned in the penitentiary for not less than one nor more than five years and fined not more than $1,000.