That was our point in the 1930s. We were a neutralist country: we didn't join the wars, but we would not put on sanctions. Now China is playing that role. We sold oil to Italy while it was invading Ethiopia, undermining League of Nations sanctions; China is buying Russian oil, undermining NATO sanctions (not United Nations, note. The UN is too powerless to play anymore.)
Of course nobody could start a war against us for that! Anymore than anyone can start a war with China.
This is not just about the oil: China is also developing an alternative interstate payment system that gets out of the SWIFT interbank system that underlies our most important sanction, Russian exchange of foreign currency to buy and sell. That undermines our control of the world money supply and exchange, and takes it to China.
This war is causing some big changes.