The phrase "burning the five p.m. candle" is an informal expression that means working late into the evening, especially on a Friday. It implies that someone is staying at work past the typical quitting time, often sacrificing their personal time.
So, in this context, B is telling A to not stay too late at the office and to make sure they leave on time. It's a friendly reminder to avoid overworking, especially on a Friday when people typically want to relax and enjoy the weekend.