Losing weight while pregnant


Is losing weight while pregnant safe? I know not to over work but I’ve been big all my life and this pregnancy is just making worse than my last one. I have the ok from dr to do anything I want , even lift weights if i can as long as I keep it at a safe weight. Has anyone else done this before?