If you don't care, just use your device normally and buy a new one when the old one's cycle life starts to suffer.
If you want to be somewhere in the middle, try to plug it in reasonably soon after it dies, or ideally before it dies. Keep an eye on your devices on the first charge after you buy them, and on the first charge after a drop or impact, watching for smoke, burning plastic smell and swelling. Don't attempt to charge a swelled battery, and dispose of lithium ion batteries properly. Disclaimer: All the above advice is given without warranty, do your own research and don't rely on this advice for your safety.