I don't miss the point at all, it's the law in China and not here and therefore deemed just in China.
It is also the law in Thailand, although it's often commuted to life for Westerners.
Ignorance of the law is no defence in law.
That said, it looks like the poor bloke really was played.