Violence is a nasty thing. But violence in service of slavery is a far nastier thing than violence in defense of human rights and freedoms.
Could you provide a bit more information on this - who was jailed solely for distributing the works of Karl Marx and for how long?
Read Yates v. United States. The conviction was reversed and it brought an end to Smith Act prosecutions of the Communist Party.
Decision at: http://www.law.cornell.edu/supct/html/historics/USSC_CR_0354...
Oral argument at: http://www.oyez.org/cases/1950-1959/1956/1956_6
Yates also largely overruled Whitney v. California (and set up the formal overrule in Brandenburg). It is worth noting however that although the Supreme Court (this was decades before Yates) held that Communist Party membership itself could be subject to prosecution, Brandeis's concurrence apparently lead the governor of the state to pardon Whitney.
The government argued that the Communist Party USA had no right to spread political ideas in the US, and targetted lawyers who dared to defend them.
Whatever the extent of Soviet spying in the US (and it would have been extensive for obvious reasons, as with the other side), the McCarthy era was an assault on the foundations of democracy in this country. If you want to justify that because the threat is real, I suppose we should just give up on this whole Constitutional Rights thing....