Here is some advice that my department wrote some years ago for our undergraduate math majors that might be relevant. It takes a rather extreme stance, but this was done purposely to provide counterpoint to the advice usually given to Ph.D. students in math: