Can I do anything to avoid getting adhesions from a surgery?

No. Adhesions are due to your body's intrinsic reaction to inflammation. With that said, the extent of adhesions can be affected by the nature of the surgery, the degree of surgical trauma, and the extent of inflammation brought about by the disease we are trying to treat.
I wish . You figure this out and you will get a nobel prize - i kid you not.