I deal with Lithium polymer batteries in my hobby where we can be VERY hard on them. Here's what we've learned in 8 years of experimentation in harsh conditions: Don't discharge below 20% on a regular basis, doing so significantly decreases the number of useful cycles. Discharging below 10% is permanent damage. Fortunately, Tesla's software considers something near 10% remaining as 0 and shuts down. DO NOT leave fully charged for more than a few hours. Doing so significantly decreases the number of useful cycles by significantly increasing the internal resistance of the cells. Charging a tesla to 'range mode' takes you to 100%, this is fine if you use it right away, not good to do that on a regular basis unless you are driving long distances that will take it below 80% quickly. For long-term storage with little/no damage or self discharge, keep at 60-80%. This is what the Tesla does when you leave it plugged in all the time, it keeps the battery state of charge in that storage mode, despite the 1%/day drain imposed by the systems that stay on when the car is normally shut down (can still do OTA updates, etc). Keep the batteries from getting too hot or too cold when in use (we often store them in the cold, but they aren't hooked up to anything). Cold increases internal resistance. If the battery is cold, don't ask it to deliver a lot of amps relative to it's capacity. 10-15 X capacity (10-15c) is OK, 30+c when cold is bad for the battery and will reduce total useful cycles. An excessively hot cell also does damage to the electrolytic chemistry. Tesla limits the current from the cells when they are cold and works to warm them up. This is why 'max power' can take a while to be 'ready' when it's cold. Tesla liquid cools the cells to prevent them from getting too hot.
TL;DR: Don't charge to range mode unless you are going on a road trip within a few hours of reaching 100%, don't discharge below what the software tells you is 10% remaining if you can at all avoid it. Call for roadside assistance before you get to an actual zero if you are too far from available charge.