Deter the US from what exactly? In what capacity has the US been aggressors towards NK that isn't in support of SK or Japan? If anything China props up NK to keep a Western-aligned unified Korea off their border.
Just in case this is a serious question, the US has invaded Iran and Venezuela most recently. The US previously invaded Iraq. What do they have in common? They don't have nukes.
Also, NK's sabre-rattling has been going on for decades and is not a response to Trump's actions.
Let's not forget, Trump is the only sitting President to visit North Korea, so they likely have less concern of getting bombed/raided than at any point in their past.
To be clear: I'm not justifying anything here, or claiming that you should share this viewpoint. I'm answering your question: how could NK possibly see the US as an aggressor.