Yeah, but the reason why Ukraine wanted to join NATO in the first place was over Crimea takeover. They didn't feel very safe after that (not without reason!!!). The invasion was going to happen no matter what.
Wanting to join NATO was the reaction to Russia's actions, not the other way around. I don't like the NATO narrative because it's spinning things to make it seem like Russia "felt threatened". They are bordering other NATO member countries as it is, and they created the Crimea dispute in the first place, to advance on Ukraine.
I don't know if we understand each other here