When someone does something to the best of their ability, they do it as well as they possibly can. "I felt nervous all through the interview, but I replied to the best of my ability."