I think russia would have attacked crimea as they did but the extended war would have stopped. Ukraine could for example use smaller nuclear weapons to attack military infrastructure like the crimean bridge, railway infrastructure etc.
I'm not advocating large scale nuclear war but a doctrine like france has https://en.wikipedia.org/wiki/Force_de_dissuasion