The Limits of Resilience (When to Persevere, When to Change, and When to Quit)