Based on your situation, leaving China before your visa expires may have legal implications. It is advisable to consult the local authorities or immigration office to understand the process and any potential consequences. Additionally, reaching out to your company's HR department for guidance on early departure and visa matters can also provide valuable insights. Ensure you follow the correct procedures to avoid any issues related to your visa status and departure from China.