If you apply for a patent abroad, don't grant a patent in China after one year, because the technology is not new. After your invalid application is verified by the Patent Office, its domestic patent right will be revoked.
It's legal to do so, but it's a bit selfish. Test it yourself.