Intent. If your speech is intended to compel someone (compulsion != persuasion), then it's a threat. Of course, accurately assessing intent is difficult because threats are often implied rather than explicit (precisely because the one issuing the threat wants to avoid the consequences of issuing a threat).