I've just thought of this sentence and am thinking whether it could be correct.
Of course, it should be incorrect if we already know that "could" does not express a specific past ability, am I right? I've made up a possible context below.
They were fighting, and I tried to calm them down. I did what I could to stop the fight, but they wouldn't listen.