Is male anal masturbation safe and are vibrators ok?

Self pleasure. Yes, of course. The only real risk would be trauma if not careful and the rare event that the ax toy gets lost in the rectum.