In trying to put into words why I think the situation in Russia is different from China, I came across the "corruption perceptions index" of 180 countries, dated 2021.
1) Denmark
1) Finland
27) United States
66) China
124) Mexico
136) Russia
180) South Sudan
https://www.transparency.org/en/cpi/2021Numerically, the U.S. is just outside the top 1/7th, China is just outside the top 1/3rd, ... and Russia is near the bottom. In Russia corruption is the norm, not accountability. Compare that to China, where President Xi held an anti-corruption drive years ago. I think that reveals what their people expect: Chinese expect more from their government than Russians, as shown by their rankings.
I think that makes it more risky for China's leadership to fall under sanctions like Russia is experiencing. While individual dissenters and protestors are censored in both places, sometimes huge numbers of people vent their anger online over the same event. China tends to do something in those cases, where Russia wouldn't (and people probably wouldn't bother in the first place).
On the flip side, Chinese learn in school that Taiwan is part of China. Combine that with censorship, and I would guess most Chinese haven't questioned their schooling. They aren't given the full picture, so they probably can't imagine that the rest of the world views the situation differently. That could lead to mistaken assumptions, which is unfortunately also the situation in Ukraine (where Putin was told Russia's military would be welcomed).