If the string is sharp, sometimes you can just pull on it and the strings tuning will become flatter, sometimes exactly what you want.
For maximum tuning stability, I also put locking tuners on my guitars and lubricate all of the parts where the string touches. This includes the nut, the saddle, and any string trees.
I use a humorous product called Big Bends Nut Sauce but I've heard graphite from a pencil works as well.
https://www.amazon.com/Big-Bends-Nutsauce-Guitar-Lubricant/d...