the first thing to do so as not to aggravate it when u get urself a sprain until u get to a dr that is, is

R- rest the extremity
I- ice it to help control pain and swelling
E- elevate it also to to minimize swelling

pain is actually good indication, it means no nerve was damaged that u can still feel pain.

see ur doctor. goodluck!