My go-to preventative measure to avoid injuries that I can do anywhere is making sure that my tissues are well hydrated, by drinking lots of water. It’s important to observe if you consume a lot of coffee or alcohol because those are things that dehydrate you.
I also almost always travel with my foam roller and spend time doing myofascial release. Be present to your body and listen to the signs it gives you. Our bodies are our best teachers. When we stop being present and choose not to listen to our bodies is generally when injuries occur.