They have nuclear weapons to hurt themselves.
Technically anything with nuclear power can hurt anyone.
You don't make nuclear weapons to harm yourself or those you want to protect.
Nuclear weapons can not shield you from an impeding and immediate physical threat.