First, under U.S. federal law, "inappropriate statements and actions" do NOT ever translate to treason.
It is just that nowadays, a number of people are of the mistaken impression that when someone or some entity is harshly critical of President Obama -- and/or accuse him of being such things as a socialist and anti-American -- they are committing treason.
However, being highly critical of a president or accusing one of being an "enemy of the State" never comes anywhere close to being treason. Such expressions are merely examples of "freedom of speech."
For example, most would consider it to be totally inappropropriate to state that a president is a "rotten anti-American S.O.B.," or that one is a "traitor who is siding with the enemies of the U.S."
However, even though such statements might be in "bad taste" or "way over the top," they are in no way treasonous. They are nothing more than episodes of particular individuals or entities venting or spouting "what's on their minds."
The only time it is treason is when an individual or entity gets caught in the act of helping an enemy of the U.S. to inflict harm on the country and/or its inhabitants.
Furthermore, the only places in which is it treasonous to be openly critical of national leaders -- and to publicly express "inappropriate things" about them -- is such societies as Cuba, North Korea and Red China.
In summation, in the United States of America, there is no such thing as "crossing the line that divides freedom of speech from treason."