A foreigner won’t be treated in the same way. The Chinese government is cruel to its own people but quite friendly to outsiders.
The law broadens the scope beyond what it originally sought to prohibit – leaks of state secrets and intelligence – to include any “documents, data, materials, or items related to national security and interests.” [1]
Beware when bypassing the GFW.[1]: https://theconversation.com/chinas-new-anti-espionage-law-is... " China’s new anti-espionage law is sending a chill through foreign corporations and citizens alike"
[2]: https://www.dw.com/en/japanese-companies-fear-chinas-draconi... "Japanese companies fear China's draconian espionage laws"
[3]: https://www.cnn.com/2023/09/11/china/china-john-leung-mms-sp... " Beijing claims US citizen jailed for life in China was decorated spy who worked undetected for decades"
[4]: https://www.reuters.com/business/autos-transportation/german... "German car industry urges Berlin to address anti-spy laws with Beijing"