If you pass a quiz, and then attempt the quiz again and achieve a grade lower than your previous attempt then the highest grade achieved is what will be saved.
This means that if you want to go through a quiz again to refresh your memory (and you haven't used all three attempts) there is no risk of wiping your highest passing grade.