According to Mahabarata, Samba got curse because of doing prank. Actually the prank done by Samba doesn't harm any one. But he got curse.
Does it signifies that pranking is a bad act? Does any text is saying against doing pranks?
Hinduism Stack Exchange is a question and answer site for followers of the Hindu religion and those interested in learning more about Hinduism. It only takes a minute to sign up.Sign up to join this community
Samba pretended to be a pregnant woman to get the curse:
Samba dresses up as a woman and his friends meet Rishi Vishwamitra, Durvasa, Vashista, Narada and other rishis, who were visiting Dwaraka for an audience with Krishna. The young man playfully pretending to be a woman claims he is pregnant, and asks the rishis to predict the gender of the baby.
So, here the question is not just about a prank. But, it's about presenting oneself as someone else to the virtuous ones or the sages. And, that's why he was cursed IMO.
Yo anyathA santam AtmAnam anyathA satsu bhAshate |
Sa pApa krittamo loke stena Atma apahArakah ||
He who describes himself to virtuous (men), in a manner contrary to truth, is the most sinful (wretch) in this world; he is a thief who makes away with his own self.
Manu Smriti 4.255
So, going by the above verse, the offence seems to be a grave one.
And, under some similar situation, Karna (from Mahabharata) got the curse from his Guru. There too, Karna presented himself as someone he was not (he pretended himself to be a Brahmin), to a virtuous person (his Guru Parashurama).
Moreover, it's dishonesty of speech or lying, and that too, in front of the sages.
Manu Smriti 4.256. All things (have their nature) determined by speech; speech is their root, and from speech they proceed; but he who is dishonest with respect to speech, is dishonest in everything
And, lastly why would one even play a prank with the sages, who are always ready with a Kamandalu full of water, to curse? :D Specially, where DurvAsa Muni was present who was well-known for his short temper.