The trend has made its way across social media as a way to improve sleep. Here’s how to do it safely.