Counterfeiting is illegal not because the "fake" dollars are wrong somehow (they might be perfect copies), but because introducing money into the economy that wasn't earned by the creation of value is bad for the economy. Inflation is when the government does this anyway.