It seems to me that the EU and US didn’t know when to stop and only looked at the potential economical and respectively geopolitical gains, while not giving enough weight to the risk of conflict when it was known what Russia’s red lines were.
This was a policy blunder. Looking at it from a moral or international law perspective is a dead end when the primary driver of the chain of events leading to today was geopolitics.
Realpolitik vs ideal-oriented policy. It wasn’t the buffer states driving the decision, it was the US and NATO. They had to choose between buffer states and expanding NATO. The developments in Ukraine were predictable and likely avoidable had they chosen differently - see the fate of Belarus or Georgia or Ukraine before 2004 and before 2014.
Which was horrendously destructive, and the two World Wars fought using more modern weaponry were particularly awful. In fact, avoiding similar wars in Europe was part of the original justification for creating the EU, Europe has benefited tremenously from the almost a century of near-peace it's experienced, and this makes Russia's recent actions basically an existential threat to the rest of Europe.