It will also cost a lot to get hit by 'enormous sanctions' plus it wouldn't really be a cost as opposed to a long term investment. China is currently investing heavily in the African infrastructure and I doubt Chinas intentions are philanthropically motivated
China’s total Africa investments are not that high compared to the scenario of the parent to infiltrate Ukraine that way. The issue of where the population of people to move to Ukraine doesnt work either.