No, it's more like this:
if you criticize certain policies of the Chinese government:
if you are not ethnic Chinese:
you are racist
else:
you are treasonous