That is in the charter of the CIA/NSA to monitor all foreign countries.
The French spy on us and we spy on them.
When our CIA/DOJ/FBI spies on an American candidate for president and his team, that is a violation of their charter. That was/is an act of sedition!
“Spying” is looking, observing, and reporting back to the master-handler.
Moses sent twelve spies into the Promised Land and got their report upon their return.
Spying does not include active intervention in the targeted country’s political process. That bad act jumps into the realm of “sabotage.”