He should never talk to a Chinese official like that, regardless of the situation. I understand his frustration, but he’s asking for trouble.
Foreigners are afforded special treatment in China.
Because the Chinese Government care about their reputation abroad.
A Chinese speaking that way to a government official would be dragged off to jail. But foreigners they will treat with kid gloves.