It also relies on knowledge of a counterfactual situation. Was the guy arrested for a threat genuinely going to hurt people, or was it a dumb joke that was taken seriously by somebody snooping in a conversation they lacked the context to even understand?
From experience, this is generally easy to figure out. The ratio between dumb joke threats vs actual threats is something like >99.9%.