Always zoom all the way in as far as you intent to go… manually focus… then zoom back out
This works if your camera has an accurately set up backfocus. Unfortunately it is my experience that many camera do not and most prosumer cams do not have an easily adjustable back focus (if it is adjustable at all)