PHOTO: KCTV and Getty
Now playing
01:25
How the Kim dynasty has shaped North Korea
PHOTO: CCTV
Now playing
02:35
Kim Jong Un, Xi Jinping hold talks in Beijing
TOPSHOT - A South Korean soldier walks past a television screen showing pictures of US President Donald Trump (L) and North Korean leader Kim Jong Un at a railway station in Seoul on March 9, 2018.
PHOTO: JUNG YEON-JE/AFP/Getty Images
TOPSHOT - A South Korean soldier walks past a television screen showing pictures of US President Donald Trump (L) and North Korean leader Kim Jong Un at a railway station in Seoul on March 9, 2018.
Now playing
02:36
Trump and Kim: What could go right (or wrong)?
This undated picture released from North Korea
PHOTO: STR/AFP/Getty Images
This undated picture released from North Korea's official Korean Central News Agency (KCNA) on October 29, 2017 shows North Korean leader Kim Jong-Un (C) inspecting the Pyongyang Cosmetics Factory. / AFP PHOTO / KCNA VIA KNS / STR / South Korea OUT / REPUBLIC OF KOREA OUT ---EDITORS NOTE--- RESTRICTED TO EDITORIAL USE - MANDATORY CREDIT "AFP PHOTO/KCNA VIA KNS" - NO MARKETING NO ADVERTISING CAMPAIGNS - DISTRIBUTED AS A SERVICE TO CLIENTS THIS PICTURE WAS MADE AVAILABLE BY A THIRD PARTY. AFP CAN NOT INDEPENDENTLY VERIFY THE AUTHENTICITY, LOCATION, DATE AND CONTENT OF THIS IMAGE. THIS PHOTO IS DISTRIBUTED EXACTLY AS RECEIVED BY AFP. / (Photo credit should read STR/AFP/Getty Images)
Now playing
01:01
Kim Jong Un and wife appear on state media
PHOTO: Photo Illustration/ STR/AFP/Getty Images
Now playing
01:04
Kim Jong Un: Trump will pay dearly for speech
PHOTO: KCNA
Now playing
01:38
N. Korean media: Kim Jong Un visits nuke lab
north korea foundation day celebration ripley pkg_00020108.jpg
north korea foundation day celebration ripley pkg_00020108.jpg
Now playing
02:24
North Korea celebrates Foundation Day
Kim Jong Un North Korea Leader life_00000406.jpg
PHOTO: KCTV
Kim Jong Un North Korea Leader life_00000406.jpg
Now playing
01:57
Who is Kim Jong Un?
PHOTO: CNN
Now playing
02:29
Defector: Kim wants to talk to Trump
This undated picture released from North Korea
PHOTO: KCNA/AFP/Getty Images
This undated picture released from North Korea's official Korean Central News Agency (KCNA) on September 13, 2016 shows North Korean leader Kim Jong-Un inspecting Farm No. 1116 under KPA Unit 810 at an undisclosed location in North Korea. / AFP / KCNA / KCNA (Photo credit should read KCNA/AFP/Getty Images)
Now playing
00:49
Kim Jong Un's 'fat' nickname blocked in China
kim jong un smoking orig_00000000.jpg
kim jong un smoking orig_00000000.jpg
Now playing
00:45
Kim Jong Un caught smoking
north korea missile launch threat trump hancocks lok_00002012.jpg
PHOTO: Getty Images
north korea missile launch threat trump hancocks lok_00002012.jpg
Now playing
02:34
Kim Jong Un issues threat to America, Trump
PHOTO: State Media/Rodong Sinmun
Now playing
01:34
Kim Jong Un reappears, or does he?​
erin dnt kim jong un mystery_00001109.jpg
erin dnt kim jong un mystery_00001109.jpg
Now playing
03:40
Where in the world is Kim Jong Un?
tsr dnt todd inside kim jong un family_00012827.jpg
tsr dnt todd inside kim jong un family_00012827.jpg
Now playing
02:40
Inside look at Kim Jong Un's family

Editor’s Note: Nic Robertson is CNN’s international diplomatic editor. The opinions in this article belong to the author.

(CNN) —  

There is something that instinctively scares us when we see slavish military synchronicity.

It awakens deep fear, an inescapable conditioning that tells us such an excess of squeaky precise coordination won’t end well.

Kim Jong Un may not intend us to read him this way, although much of his behavior suggests that he does.

Of course, what is really getting under our skin, beyond the parades of soldiers and civilians, is that this third-generation dictator still only in his 30s is on the verge of nuclearizing his intercontinental ballistic missiles – and if something isn’t done soon, he might make good on his promise and lob one at the US.

If he does that, the gloves come off and the Korean Peninsula is blasted backward 70 years into regional warfare and instability.

No general worth his salt ever gambled that his adversary wasn’t capable of the unthinkable. But what if this worst-case scenario paranoia is Kim’s real problem? What if he is trapped in his own imagined view of what the US might do should he back down?

When he weighs the world calculating his next move, for he is no madman, does he eye Moammar Gadhafi’s grisly end in Libya – as North Korean state media has hinted numerous times at the “tragic consequences” of giving up a “treasured sword for frustrating outsiders’ aggression” – and shun compromise, or is there another demon burdening his brain?

I was in Libya as Gadhafi’s regime was coming down and met with some of his top advisers – including his son Saif.

They were sure the West wouldn’t let them down. Britain in particular, they thought, would hold their corner. Not only had they cooperated with the UK in capturing terror suspects, Gadhafi Sr. had handed over all his nuclear know-how.

For them, it was supposed to be the ultimate deal: rehabilitation in to the international community. And for several years it worked, more or less.

Per capita, Libyan GDP rose to the highest in Africa. The country’s single biggest impediment to progress was Gadhafi himself. He was alive and rich, albeit defanged.

But then came the Arab Spring street protests to topple the Great Leader. As Gadhafi resisted the rebel attacks, NATO – and his old allies in the UK – picked a side and bombed Libyan forces.

That’s when I was meeting with his lieutenants. He didn’t know it at the time, but his past belligerence was like a target on the shoulder of stag. That stag keeps running, even though the bullet has pierced its heart.

When the bombs began to fall, Gadhafi was already dead – he just didn’t know it yet.

If it’s the Gadhafi story running through Kim’s mind, then getting to a point where we can start dialing down the rhetoric – never mind throttling Kim’s military machine down a gear or two – is going to be very complex, undoubtedly involving intermediaries.

What will further complicate the attempts at diplomacy will be finding intermediaries that the North Korean leader can trust. But seeing as the two most-likely candidates – Russia and China – just backed the unanimous UN resolution for greater sanctions against North Korea, that door seems shut for now.

Gadhafi lived long enough to see the finer edifices of his empire smashed, overrun and looted by angry citizens.

Shorn of his deterrents, does Kim fear a similar fate? At what point of international compromise does he calculate his population will turn?

Gadhafi was finally pulled from a concrete drainage tunnel where he was hiding under a highway; the rage of generations of his countrymen was vented upon him.

For more than 30 years, he’d kept the country in line through fear, patronage and intimidation. With NATO’S help all of that was gone. His only defense, his golden handgun, was pulled from him, landing in the hands of a teenager.

Under Kim, North Korea’s scientists and army officers are treated to a better way of life: privileged access, for example, to the country’s newly constructed ski center.

Role and rank in North Korea earn rights in much the same way Gadhafi rewarded his henchmen. But, as I witnessed in Libya, when the chips are down, most either turn to the other side or run.

If Kim’s calculation is that Gadhafi was profligate and nowhere near as as close as North Korea appears to be to getting long-range nukes when he threw in the towel, he may simply be preparing himself for the final sprint to completion.

His mind could be made up that he can perfect a deterrent before his enemies deter him.

Gadhafi had a lot riding on his deal with the world. Kim would have a lot more if he chose to trust US offers to talk – and, so far, his interlocutors are making it clear he does not.

Indeed Kim is blustering all the way to deterrent, promising the US an angry flurry of his missiles in response to tougher sanctions.

But if Kim had been considering his options and coming round to the idea of some new diplomatic fulcrum, then President Trump’s latest threat of fire and fury will, if nothing else, set him off balance.

As it is, Kim isn’t shifting one iota. Indeed, he seems set for a showdown of his own making.

Gadhafi was egotistical enough to believe he could win. Kim is calculating he could just lose. And that means for any coming fight, he’ll need all the synchronized soldiers he can muster.