This quote is saying that instead of aiming for high grades and risking loneliness, it is better to focus on having good relationships with friends by achieving less academically. It implies that at the time the speaker was graduating high school, they felt that it was more important to prioritize their social life than their academic performance.