Struggling with what my midwife just said to me about my weight

Julia • mama of one amazing little boy born 12/8/15 and wife to a wonderful, hard working man.
Little history on myself - I have stuggled with an eating disorder and major body issues for a large part of my adult life. So about a year and a half ago, I found myself in a good and healthy spot and started to put on weight. Since I was finally reaching a healthy weight of 130 (I am 5'7 almost 5'8) I had to remove all scales from my home because I knew if I kept them around, I would obsess over the number and restrict again. 
Ok... So I know I'm going on and on, but to sum it up, before I found out I was pregnant, I got on a scale after months of not getting on one, to see I was weighing 145. I almost shot back into my old ways - but found out a week later I was pregnant. (Due 12/28 with a boy 💙) 
Well today I went for my second checkup at 20 weeks and I'm weighing 162. Up 2lbs from my last appointment a month ago and my midwife went off. Lecturing me about what Im eating, drinking and the amount of exercise I am getting before even asking me my routine. I immediately starting tearing up and explained (as calmly as possible) I exercise at least 30 to 60 minutes daily, I only eat high protiens foods, fruits and veggies and consume nothing but water and one small cup of black coffee in the morning. She continued to tell me if I "continue to gain weight in this manor, I'm going to harm the baby and will have gestational diabetes" 
I was like she didn't even hear me at all.. 
I was shocked and hurt by this and I guess I felt the need to reach out to the women on here to find out if their bodies seems to be holding to to the weight like mine? I'm feeling pretty down on myself right now and could use some support of some women going thru pregnancy as well.. Thanks ladies!!