Since gold is not money, it isn’t a matter of counterfeiting. But true transmutation would mean that the gold produced from dirt would be indistinguishable from gold mined in the traditional manner. So it would not be criminalized as much as outlawed to stop the devaluation of gold stores. It would be like someone finding an alternative way to mine bitcoins at 1/1000th the necessary computing work.