Any advice that we give is based on the information you have provided. You should always follow advice you have been given by a health professional.
As you have tended to go through a cycle of gaining and losing weight, the priority for you is to stabilise your weight and stay in the healthy range.
You should find the MAINTAIN section of the website helpful. This gives advice on how to deal with the normal changes in weight that happen to use all from time to time.