You go from two countries that have nothing to do with each other to one country that can say "we pay so much for X from them, let's go take it."
Perhaps in a perfectly balanced scenario that wouldn't be tempting, but those scenarios are quite rare.
"Russia's problem is with the US" implies that Putin's motivation for invading Ukraine had much to do with the US. I find it strange that westerners are so willing ignore all of the historical irredentism, revisionism, and general nonsense that Putin has been spouting for years and instead insist that the invasion of Ukraine has to do with NATO expansion, something Putin almost never brings up (in comparison to the aforementioned reasons) and in practice clearly isn't concerned since they removed 90% of their troops from the Baltic / Nordic / Polish borders.
And Russia's problem is with US, that it didn't had that much trade to begin with.
Similarly nobody is fighting China yet.
I don't believe free trade is a permanent solution no, but it does help greatly.