Before World War 2 and also before the EU, countries in Europe were constantly disputing borders, especially when a dictator was involved. After WW2, it was recognised that even if there were lots of silly borders, the issue should not be resolved by aggression.
NATO did not care about dictatorships but the EU did (although I might be wrong).
If Russia is allowed to take a bite out of Ukraine, where does it stop?