China investing is tricky as Beijing turns less favorable to capitalism