The bright and dark side of resilience