I suggest that you rest your ankle and foot in the way that your doctor has proposed.
You need to give it time to heal.
If you require some pain relief take and Advil
or two or your preferred pain reliever that works the best for you or pain reliever that was prescribed by your doctor.
I hope this helps.
I wish you well!