If they can be compelled to act as spies by their government, then Yes, they should have restricted access. It is unfair to an honest person to be judged by the actions of a few in power in their country, but such is life globally (even for US citizens... especially lately).
https://www.france24.com/en/20110104-france-industrial-espio...
The same can be said for hiring Australians dealing with software. Australia has a law that forces its citizens to comply with requests by the government to hide backdoors in code. As a consequence, anything contributed to important project by any Australian citizen is a potential risk. If your project is important enough, Australian contributions should not be accepted.
Laws like this make it incredibly risky to hire people from certain nationalities in big companies or for secret projects. Governments are willing to sacrifice the economic value of their citizens for the ability to hack and spy on anyone they like and other countries should respond appropriately. If you show that you're willing to use your citizens to take aggressive action, be prepared to have your citizens refused elsewhere.
They don't need a specific law, quite a few might do it because of patriotism (just because he is is living in USA for 4 years, he's still connected to the motherland.) Simply one that says "all national are required to answer questions from ..." then they make your life miserable until you do so. Imagine having the entire local and state of government on your back: lawn too dirty, you spit on the sidewalk, taxes...not just you, your entire extended family.
In other words, if China and Russia want to make their citizens talk, you will. Or 99% will.
Although there is debate regarding the circumstances under which assistance can be compelled, it appears quite broad:
The Intelligence Law, by contrast, repeatedly obliges individuals, organizations, and institutions to assist Public Security and State Security officials in carrying out a wide array of “intelligence” work. Article Seven stipulates that “any organization or citizen shall support, assist, and cooperate with state intelligence work according to law.” Article 14, in turn, grants intelligence agencies authority to insist on this support: “state intelligence work organs, when legally carrying forth intelligence work, may demand that concerned organs, organizations, or citizens provide needed support, assistance, and cooperation.” Organizations and citizens must also protect the secrecy of “any state intelligence work secrets of which they are aware.”
https://www.lawfareblog.com/beijings-new-national-intelligen...
This is shitty on so many levels, and what is the appropriate response? Should Chinese citizens have lower access in US companies? At universities? Etc. That would be a terrible outcome.
We do need some kind of clear asylum option for any Chinese citizen who gets pressured into this. But that only goes so far when the state back home can punish your family members etc.