There isn't really a way. Maybe stay off of it for a little.
"I've missed more than 9,000 shots in my career. I've lost almost 300 games. 26 times, I've been trusted to take the game winning shot and missed. I've failed over and over and over again in my life. And that is why I succeed."-Michael Jordan
Seek medical advice first! That's one of the most important things you can do early on, even with slight injuries such as sprained ankles. You can just hurt yourself worse by handling it on your own. That being said, staying off of it completely is probably not in your best interest. Exercise with a slight injury, when taken in moderation, can help the body heal. I wouldn't recommend doing your usual basketball routine on it until it's completely healed though. Get an ankle brace and play every other day, or 3-4 times a week.
Again, go to the doctor first.
NC State University