First of all, hooking up with strangers is no different than taking a raw cock up your ass. If you aren't willing to accept the risks, then stay home. There are no guarantees in this life.
Secondly, if you're going to do it, I suggest that you stay sober. Don't get fucked up on booze and other substances and go home with someone you've never met. For anonymous hookups, you should have a clear head and be alert. I'm not advising paranoia, but maintain some awareness of the situation. I think we all possess intuition. The trick is to acknowledge that little voice in your head. I've never been in a trick situation that became violent or frightening, and I think it's because I've learned how to go with my gut feeling about strangers. If you're the slightest bit uncomfortable with something, there's probably a good reason.
I'd also recommend learning how to defend yourself. I usually insist on hooking up in my own home, because I feel like I've got the advantage in my territory, but if I'm forced to go elsewhere, I know how to react to a bad scene. I'm a fairly small guy, but I assure you, if I'm threatened, I can take care of myself, and I don't fight fairly. Try to do something to me that I don't want, and I'll go medieval on your ass.
Last of all, let somebody know what you're up to. If I meet somebody at a new location, I'll text a friend and let them know where I am. I have a small circle of friends with whom we have this mutual agreement. It may not save my life, but if I do get killed, at least the cops will have a lead in finding my body, and more than likley the perp will go down for the crime.
Just be sensible and alert. You can be a victim anywhere at anytime.