OK, I'm going to go against consensus here, so I need to establish some credentials before anyone attacks: I have worked in research, medical and commerical labs for 15 years. I have a Ph.D. My country has some of the strictest OHS laboratory guidelines in the world, and I have completed myriad safety courses and handled safety breaches.
I think you could have handled this much better. You didn't say anything 'wrong', sure. But based on what you have presented here, you didn't say it well at all. You were firm when you needed to be (dealing with a hazard), so that was great. But the guy was new, he made a (big) mistake, the situation was dealt with (even if not to your exact specifics), so move on. Telling him later that he was, in essence, rude and incompetent and you didn't want him around you was (IMO) unprofessional and quite childish, no matter how calmly you said it.
A scientist who is strict about safety and protocol will always be respected. But a scientist who is strict about safety and protocol and is also able to interact well with others will be respected - and hired. Sorry, but its' the truth; I've known plenty of perfectly competent people who have been let go or passed over because of their poor personal skills. Your PI is telling you this too, albeit indirectly. Labs rely on postgrad researchers, as I am sure you know, so if you alienate enough people, the word will get out and you will be seen as the problem that needs to be addressed.
I feel like I've been very harsh in telling you not to be so harsh - its' just that in my experience, you don't need to act like this to ensure that the lab works efficiently and safely.