Any advice that we give is based on the information you have given us. You should always follow advice you have been given by a health professional.
While you don’t have a long term health problem as you have been gaining weight and your weight is already at a level where there is a risk to your health – it is important that you take action to reduce your risk of future problems.
The first thing to do is to stop putting on more weight and to keep your weight stable for a while. After that point you can think about losing weight.
Although you have not tried to lose weight seriously before you may find it helpful to access more support.
This link provides information on the help that might be available to you.