The EU gives certain conditions and it's up to the elites in a given country to meet them, as that necessarily means reining in corruption - to an extent. Fortunately for me, the ones in my mine decided that this is the best course of action and we all benefited.
Also when you look at the examples of Greece or Orban's Hungary, occasionally a member will go off the rails. But again, it's the elites that let this happen.
Meanwhile corruption is an inherent feature of the Russian system, which is why doing business with them is broadly speaking a bad idea. Also it's a rather small economy producing largely low value products despite vast natural resources - there's no benefit in associating with them in this day and age. The cheap gas is not worth it.