How to avoid loose skin during weight loss?

I am 300 pounds and I want to be 150. I was just wondering how can I avoid having loose skin after my weight loss? I don’t want to have to get surgery or anything. Is there something that will help with this?