It’s anti-American behavior against a person in America as opposed to against the nation specifically. An attack on one is an attack on us all.
Most of those things aren't joining up with a foreign adversary with whom we're officially at war.
Even things that are treasonous in a colloquial sense are still pretty narrow, and tend to refer to other specific forms of betraying your country, that just happen to be other crimes -- like espionage, or insurrection.
Adversary to the people, or the state? These are wildly different concepts. Just because my state has beef with China doesn't mean they can't convince me that my life is better with China in it. Sometimes states just misrepresent the people.
Our definition for what constitutes treason is purposely narrow specifically due to the abuse potential.