Immoral would be working with public or private entities that hurt people. Treasonous would be transferring funds to sanctioned entities or individuals, perhaps.
Hiring Vlad from Irkutsk, who's a kind HN member like you and me, to write a CRUD app for a digital agency, is neither immoral nor treasonous.
A big chunk of humanity seems super keen to direct their hate to out-groups as soon as it becomes socially acceptable