Regardless of gender, sexuality or whatever, masturbation ends up as #1 in regards to SafeSex.
If you do things that aren’t “normal” (whatever that means) play it safe!
Don’t do stupid, dangerous things. If a consideration of “Maybe … something bad” exists, then Google it (carefully and make sure the adult filter is off!) and find out how it went and how it was done.