To get the most from your battery:
• Let the OS and charging circuits manage the charging.
• Plug in when using the computer near available power.
• Use on battery when ac is unavailable.
• Don’t subject the computer and battery to extreme temperatures.
• Try not to allow the battery to discharge deeply regularly before plugging in. Yes, it may happen from time to time, just don't make it a habit.
• Don't obsess over battery life and/or health.
Here is Apple's guidance on the subject.
Batteries - Maximizing Performance - Apple Support
About battery health management in Mac laptops - Apple Support
❝Worry is the misuse of imagination.❞ – Zadra