@HerpeFree talking about whether the invasion was justified or not is not productive because it doesn't help us understand why the invasion happened and how this could be avoided in the future.
If conflicts are to be avoided then it's important to understand the concerns of all the parties involved and to look for solutions that all parties can live with.
NATO refused to participate in finding peaceful solutions for Russia's security concerns which led Russia to solve the problem militarily.