There’s not much you can do to prevent. If the pup starts showing signs of limping and weakness, it’s a good sign on Lymes, and the best treatment is doxycycline.
Discussion
We had a dog who had a Lymes vaccine and they actually refunded us because he tested positive.