Based on an obligatory precaution, it is impermissible to cause a major harm to one's body. If this does not cause a severe harm then it is permissible. In any case, we advise you to refrain from doing such things, as it is an act of frivolity. If it encourages misguidance and deviation, then it becomes prohibited.