Ankle pain getting worse

I started having pain in left ankle couple of weeks ago, stopped running as thought that was the cause. Two weeks on and right ankle now affected. Gets better through rest but just walking seems to make it worse. Is it just overuse injury. Did gym /classes 4 times a week before lockdown but now do 5Km walks everyday.