How can I lose weight and avoid sagging skin at the same time?

I need to lose weight but afraid that I will have the saggy skin that many people who lose a lot of weight have. Don’t want to have surgery so I need to know the most effective possible way of avoiding skin sagging.