“Allowed?”
How would you approach preventing a nuclear armed state from invading their neighbor?
The only lever they (EU and member states) had was economic, there were zero diplomatic or military options. Russia is essentially a nuclear-armed mafia-owned gas station, so not buying NG would’ve helped a bits
Preventing them from invading doesn’t really seem possible once you account for nuclear weapons.