All countries restrict speech their government (which is the will of the people in a democracy) finds does more harm than good.
America protects the speech of the rich and powerful but allows stoking division and outright propaganda. It hides a lot behind "it's not technically illegal but you'll lose your job if you say the wrong thing", or "you'll get arrested but if you're rich enough to afford a lawyer you might get charges dismissed"
Perhaps solve those problems before criticising other countries for fighting back in the war.