Once your muscle fatigues and you can't push through any more reps (make sure it's your body quitting - not your mind), that set is done.
Log your reps, and that is now your goal to try to beat over the coming weeks. The recommended rep ranges are simply targets.