That’s an odd take. The CCP was literally doing their job, just like US and other spy agencies also engage in espionage. Whether or not they “should” be doing so is a geopolitical debate that it’s easy to moralize about but difficult to change.
Huang had many responsibilities that he failed to live up to. Sure, he’s a victim of sorts, but he also failed everyone.