There are rules about when the IRS can and can’t go for the gold.