It is actually not the Chinese government that is against cryptocurrency. It is the peoples bank of china which is the biggest bank in china that is against bitcoin and crypto very much. Since it is a communist bank and all those people who work on that bank are basically government employees it becomes the "government" is against it but in reality they are just a branch of it and not all of it.
For example, I am sure there must be some people in the ministry of family and social policies (if they have a ministry like that) probably likes bitcoin as well but we don't make clickbait titles like "government employee promotes bitcoin in china" or something because that's just one person. Hence, same applies here, there is no governmental consensus since all people have their own opinions but the people at the top seems to listen to the bank so far, that can change rather quickly if anyone higher starts to like it one day.
Government of China is trying to find all possible expectations in order to compete with hegemon countries for different type tecnological,financial innovations. China takes the lead in AI,robotic softwares with improving their research and network among biggest companies but sometimes leak the information to foreign sources.Crypto industry is developing there but people will always find some glitches for destroying reputation of country, so it doesnt matter how much afford given for this possibilty.