Xi is panicking watching the effectiveness of Ukraine's oil sanctions program. Xi Thought twice about his invasion plans.
The real reason Ukraine and Taiwan are a threat to Russia and China is because their close proximity and cultural connections allow their people to see the benefits of democracy up close. Authoritarians hate when reality threatens their plans.