If the Treasurer of the United States or any public depositary fails to keep safely all moneys deposited by any disbursing officer or disbursing agent, as well as all moneys deposited by any receiver, collector, or other person having money of the United States, he is guilty of embezzlement, and shall be fined under this title or in a sum equal to the amount of money so embezzled, whichever is greater, or imprisoned not more than ten years, or both; but if the amount embezzled does not exceed $1,000, he shall be fined under this title or imprisoned not more than one year, or both.