And before that the US invaded Iraq (twice), Afghanistan, various other countries (arguably including Vietnam and Korea). The USSR also invaded Afghanistan. Plus various other proxy conflicts.
WWIII, in the sense of an all out war, won't happen because the opponents all have nuclear weapons and are too big in any case.
The West is careful not to directly attack Russia in Ukraine. Russia will be careful not to attack any NATO countries. If mainland China at one point launches an invasion of Taiwan the same will happen: China will be careful not to attack the US and allies, and the US and allies will be careful not to attack China.
Really, the same that has been happening since 1945 between US and Russia, and since the end of the Korean War between China and US (when the US understood that China was off-limit as well).
It's just that since the fall of the USSR people in the US and the West have become used to run the show unopposed. This is no longer the case and we are 'simply' going back to a situation where several opposing major powers (really, that means the US and China) match each other (or at least are strong enough relative to each other to be assertive).