Can a man pleasure himself without the intention of ejaculating?

What you are asking about is sexual pleasure and it’s not possible to get alone unless a person goes to the imagination that is not allowed therefore the best way to control one’s sexual desires is either gets married even temporary marriage otherwise should not involve oneself in a sexual environments etc.