At bit of searching finds:
"Whoever fraudulently alters, defaces, mutilates, impairs, diminishes, falsifies, scales, or lightens any of the coins coined at the mints of the United States, or any foreign coins which are by law made current or are in actual use or circulation as money within the United States; or whoever fraudulently possesses, passes, utters, publishes, or sells, or attempts to pass, utter, publish, or sell, or brings into the United States, any such coin, knowing the same to be altered, defaced, mutilated, impaired, diminished, falsified, scaled, or lightened- Shall be fined under this title or imprisoned not more than five years, or both."
This has been interpreted to apply to all moneys. So yes, it is illegal, but it's not enforced unless you are trying to counterfeit money. That's where the word fraudulently applies in the law.
Still looking for the original source.