If China is claiming that Hong Kong citizens are foreign agents, aren't they implicitly admitting that Hong Kong isn't part of China?
While you're still waiting to get up to speed, just understand and accept that all Chinese people are the property of the Emperor. It's much easier to make sense of things.