A diligent king has two meanings, one is to be diligent about the king, and the other is to save the king from danger. Generally speaking, the second meaning is used more. A diligent king means that when a ruler meets a traitor or a foreign threat, his courtiers who are not around the emperor will get up and rescue the emperor. We call this phenomenon Beijing diligent king.
When the life of the ancient rulers was in danger, or the throne was threatened and influenced by external factors or civil strife, the emperor would send a message to the generals who were outside to go to Beijing to be diligent and let them quickly return to Beijing to rescue the drivers.
Of course, officials should be duty-bound to come to the rescue when they hear that the emperor is in danger.