I agree with you in principle, but it is a sad reality that we live in a world where it is not the case. If you had a bully in a classroom, you would not go around provoke him, you would try to live with him even though you don't like him.
As for the NATO membership, yes Ukraine can want to join, but NATO had to accept them, all members had to approve before that happening. NATO could have said publicly that they would not accept Ukraine into NATO for at least 20-30 years, and that they would not put NATO equipment or troops in Ukraine, that would not prevent Ukraine from doing whatever they wanted with their own military.
There is a reason why not European countries are in the EU. Ukraine wanting to be in NATO does not automatically make it wise for NATO to accept them. Kosovo (which US recognizes as a separate country) cries on all bells to be accepted in NATO, but it is not happening, why? Because it is unwise at the time to do that. NATO loses nothing, and bully is not provoked.