What would be your advice: Persevere or cut your losses and move on?

Perhaps another way to make QuantMech’s point is that if the students who did worse than you this semester don’t continue, next semester you will be the weakest student.