if someone needs your oil? They won't just say, "I love this guy" and not take what they need.
Well, there's trading for it. If they refuse to trade for it, and one country invades the other, it is one country's fault for taking the warpath, and the other's for accepting it, and not just giving the petrol.
However, when you are feared, no one will be willing to attack you even if they want your shit.
That's proven to be wrong many times (such as the First World War), in truth, America officially invaded Iraq out of fear that it developed some superweapons, and some politicians in America advocate for airstrikes on Choson to take out its core weapon capabilities, along with shooting down all its space vehicles.
Furthermore, it is not possible to be loved by everyone; conflict of interests will prevent it.
Unluckily, yes, and in a world without war, this would not be a problem. As is, take love over fear how much you can.
One more thing - don't confuse being hated and feared. The former will result in the scenario you described, where "they will take any chance to take you down." This is like the USA attacking the Nazis. The latter will result in them not attacking you for fear of being destroyed - like the USA not attacking the USSR.
The latter nearly killed millions of innocent folk, and only a few fellows who were bold enough to disobey protocol to launch core missiles saved those millions. One time, in the Caribbean Crisis, the American navy tried to set up a transport blockade about Cuba, and there was a Russian core submarine team that got caught in the blockade. The above ships dropped some rounds near the Russian underwater ship as a warning, so that it would surface or go back, but the Russian submarine commander thought that the war began between America and Russia, and protocol would have it to try and take down the American ships, and then to open the doors and launch a dozen core missiles, but the captain chose not to go to such deadly members, and saved New York, Moskva, Los Angeles, Leningrad, and many other boroughs.
And although full-out war was narrowly avoided, they still took whatever chance they could to step up each other, Americans funding the Islamists in Afghanistan, or trying to overthrow the Soviet-friendly Cuba, while Russians helping out the North Vietnamese and Korean, and in both countries, colossal amounts devoted to military forces.