If that happens, i.e. a NATO country directly attacking Russia, then a nuclear war starts. I'd put China in the same basket, also Pakistan if it gets attacked by India or vice-versa. Proxy-wars (to use your example Poland attacking Belarus) are of course more complicated.