When they’re repeatedly advancing after being warned to back off. That’s a legal threat at that point. The victim has made it clear that they’re asking the perpetrator to move and also made efforts to remove himself from the situation. When prevented from doing that there was an imminent threat of bodily harm to him, at which point he reacted appropriately.