Following the announcement of lunar programs by the US and China in recent years, a new round of lunar competition has commenced. In the absence of effective international regimes, there is a pressing need to develop legal measures to preserve lunar security and safety. Rules on demilitarization and deconfliction are particularly crucial. The 1967 Outer Space Treaty establishes the principles of ‘peaceful purposes’ and ‘exclusively for peaceful purposes’, but their interpretation remains contested. The rise of cislunar space strategies further complicates the application of these principles. Meanwhile, for managing daily operations on the lunar surface, the US-led Artemis Accords propose safety zones to prevent harmful interference. However, non-signatories like China and Russia are not bound by these provisions. As a significant player in the lunar competition, China should contribute to the establishment and improvement of legal measures to ensure lunar security and safety. For lunar demilitarization, China should refine the PPWT draft to address the specific security demands of cislunar space and the Moon. Concurrently, China should actively participate in formulating norms, rules, and principles of responsible behavior to mitigate threats in cislunar space and on the Moon until a universally accepted legally binding treaty is achieved. For lunar deconfliction, considering that the creation of safety zones may become the earliest practice to fulfill the obligation to avoid harmful interference, China needs to coordinate with the US to negotiate detailed rules on the size, scope, nature, behavior, and dispute settlement measures related to safety zones.