You can relieve pain and control swelling with the help of Rest, Ice, Compression, and Elevation (RICE) technique. You should first give rest to the injured area, then apply ice or cold pack immediately for at least 20 minutes on it. After that provide compression on the injured area by wrapping the place with a bandage and then elevating the injured leg.