Extinction and overfishing threats can be predicted decades before population declines