Masterbation... Orgasms...

When I'm masterbating like it gets to a certain point that it will have like this really like weird feeling.. I don't actually know how to explain it. It feels good but it's hurts too... Or it feels so good that it hurts... Or something... Is that an orgasm? Or does it come before an orgasm? And is there any way to make it not hurt and continue going? Thank you to anyone who comments I don't really have anyone to actually talk to about this and it's all kind of new to me.