Earlier quoted context omitted.
It's possible you have a custom, non-standard understanding of the term. According to Merriam Webster, it has 5 meanings, and none of them refers to the government. https://www.merriam-webster.com/dictionary/nation
Read the news. You see headlines like "US sends two carriers to Persian Gulf". Not "Government of the US", but "US". That is, in external affairs - military and diplomatic and espionage - it is a normal, customary usage to refer to the government of the country by the name of the country. It's used that way, whether you agree or not. Now, the point you're making - that there is a difference between the government and…
And this is more or less fine. Not just in the news, in normal conversation we do the same. Not just "China is doing this" but also "Chinese are doing this." That's also logically true, because some subset (however big or small) of Chinese is doing this.
However, I object to this particular expression - "China is a hostile nation." I don't know why it's even a point of contention. Maybe when people use the term 'nation' they actually mean 'state'? Because 'nation' by and large refers to people the country consist of.