(CNN) Snapping the perfect selfie can be fun. But if it involves flying a plane or holding a loaded handgun or standing on slippery rocks near the top of a waterfall, you may want to think twice.

Some 259 people worldwide have died while taking selfies, according to a study published in the Journal of Family Medicine and Primary Care. Researchers from the All India Institute of Medical Sciences, a group of public medical colleges in New Delhi, scoured news reports on selfie deaths that occurred from October 2011 to November 2017.

JUST WATCHED Teen accidentally kills self taking selfie Replay More Videos ... MUST WATCH Teen accidentally kills self taking selfie 00:45

They found that the most selfie deaths occurred in India, followed by Russia, the US and Pakistan. Most of the victims were men (about 72%) and under the age of 30.

India accounted for more than half the total -- 159 reported selfie deaths since 2011. Researchers attributed the high number to the country's enormous population of people under 30, which is the world's largest.

Although women generally take more selfies than men, researchers found that men were more likely to take risks -- like standing at the edge of a cliff -- to capture a dramatic shot. "It justifies the higher number of deaths and incidents for men," the study said.

Read More