I think you're making some category mistakes here. "Resisting" is a somewhat weird way to phrase this. Do you expect Russia to "surrender" to NATO? On the other hand, Russia's economic system is not exactly the Soviet one. To a good extent Russia has "surrendered" to [a form of] capitalism even more so than it has "surrendered" to democracy.
But to go over all these issues in detail is a rather lengthy affair...
Russia's foreign position for the past 20 years has been inextricably linked to the views of Putin, who practically ran the country from one or other official seat. Political theorists have been somewhat split on how to best describe his regime, but they agree on a drift toward increased authorianism and nationalism, which some have compared to Bonapartism.
Putin was a KGB man, so he has his viewpoint that any expansion of NATO is a direct threat to Russia. Furthermore, he took umbrage at the West (EU included, not just NATO) having "its way" in Kosovo. If you look at any interviews with Putin on foreign matters, he seldom fails to bring up both these points in justifying Russia's increased confrontation with the West thereafter.
Furthermore, Russia saw a genuine rise in [ultra-]nationalist parties to the right of Putin's own position. Putin has wrestled with these in the domestic arena; dismantling some and incorporating others--including their leaders--in his own party/entourage. A chief example of the later would be Rodina [=Motherland] and Dmitry Rogozin.
Its rather hard to disentangle all these issues as they fed one into another, but their interplay is that in the past or so Russia has invaded Georgia, Crimea, recognized Russian-majority separatist regions as independent etc. More recently it has backed-up its client regime in Syria with some troops and especially equipment and airpower.
Since you suggest that had Russia done otherwise in terms of foreign policy it would be prosperous like France... It's hard to say. A lot of Russia's industry is focused on its military-industrial complex. So Russia is good a making weapons with a decent "bang for the buck". This doesn't easily translate into other kinds of industrial advantages, especially in the short term. And arms exports are nearly always political, in the sense that there are almost always such considerations at play both for the seller and for the buyer. (Note Turkey's problems after buying S400, for instance.)
Russia's chief exports remain its hydrocarbon-based energy reserves. And that's a well-known "Dutch disease" problem that's fairly hard for any country to solve. So it's rather hard to see how Russia could have become like France in 20 years, economically, even if it had given up its geostrategic ambitions.
Russia has definitely tried to create an Eurasian Economic Union (mostly in the former Soviet space) to compete with the EU on that angle as well. However all the [other] countries involved were rather poor, so you can't really expect miracles from that. Additionally countries that Russia desired to be in that Eurasian space have drifted towards the EU, chiefly Ukraine.
If you want to take the counterfactual thinking to the limit, Russia itself could have embarked on a EU membership path instead of trying to outcompete the EU on that angle... But given all the other political roadblocks, it's hard to see this as very plausible. The [Western] EU itself was rather tired of all the expansions.
Furthermore, Yeltsin's economic policies had a "Wild West" aspect that allowed various oligarchs to assert substantial power, sometimes bridging the economic and political. And this didn't sit well with Putin but also with a large segment of the Russian population, as they saw "Wild West" oligarchic/"piranha" capitalism as a form of thievery.
On that angle, Putin's aim was to bring these oligarch under his control. So he imprisoned some and confiscated some of their wealth (as examples to the others) and instituted a longer-term policy of "deoffshorization" in order to reduce the oligarchs' ability to export their capital, in order to increase their dependence on him/Russia. So, a side-effect of this was an (albeit limited) form of "decoupling" of Russia's economy from the West. But this shouldn't be too overstated. Even after all these and the sanctions related to Russia's foreign confrontations, Russia export to the West rebounded, ironically the most to the UK (especially after Brexit) despite all the political confrontations.