I'm not sure what you're saying. If you are walking down a quiet street at night, and a person with bad intentions needs some money, then it "makes sense" for them to beat you up and take your wallet and phone. They needed some money, so the mugger's behavior is not unexpected, and their end justified their means. That doesn't say anything about whether it's right or not, or whether people should do something to prevent muggings or not.
That doesn't answer JoshMnem's question. Justifies the means to whom? If the answer is google, I'm not sure what the point of your comment was, as that's pretty obvious...