Nope. In America it’s a civil defense, so at most you could get sued by the person you defamed, but even that carries a very high burden of proof. You’d have to show the person knowingly defamed you, basically meaning that they knew what they said was false.
If you are charged with a felony then you go to jail and can be held up to 5 years in the jail awaiting trial.
SW-User
It depends on what kind of defamation it is. Most of the time you have to pay a fine. But for public diffamation (racism, homophobia, discrimination) you could risk one year in jail
There is libel and Slander against a person or entity but not against the country. Also for it to be libel or slander it has to be proven beyond any doubt the person making the claim did so while knowing it was false. If you actually believe it or it cannot be proven you didn't then it is not a lie and not slander or libel. So basically you pretty much need a confession to prove it and it is one of the hardest charges to prove in court.
Again though, you say anything you want against the country and you are protected by freedom of speech. It is one of the freedoms we Still have and is absolute in a world that is increasingly against it.