Nottingham Forest edged Chelsea 3-2 in a five-goal Premier League thriller at the City Ground, punishing defensive lapses to secure crucial points.