Sedition is legal. That’s why we can’t prosecute American communists.
The line between sedition and treason is very thin, if it even exists.
The Founding Fathers (especially John Adams) stated that the US Constitution cannot rule those who are immoral and irreligious, except to the punishment of such people. Those who lie against the USA (the mildest form of sedition) are not moral.