Preserve the threat, identify the person if possible, document dates and witnesses, and seek police assistance where the threat indicates criminal conduct or immediate danger.
Do not retaliate or manufacture a counter-allegation. The exact offence depends on the words, conduct, context and threatened harm.