Friendship / Work issues, did I do something wrong?

I never post on this app before so bare with me please I'll give some background so they whole thing makes sense . It's quite long story but I'm pregnant and this whole situation is making me really depressed at 22wks pregnant.

I started at my job at the beginning of the year and I was loving it. Is exactly what I went to university for so I'm quite happy. My work has to offices in 2 different cities and both offices work on the same projects, this girl lets call her Margaret she's being in the company for 2 years and at the beginning of the year she move to my city to continue her studies and change from full time to working at part time, my top boss then decided that's since she's part time and it's not many people that know that type of project they pair me up with her and another girl from the other office so she can teach us, very important we all have the same title and we still gotta report to the team leader I have a different one than her since she move from the other office, me and Margaret gotta along no problems, and I even told her before everybody that I was pregnant, because I thought we form same kinds of friendship, I even took her out to lunch I listen to her about felling stress about university and about her relationship when I notice she was a bit off, the team leader thats in charge of this project that we doing is on the other office and she's being hand more than one project so she decided that Margaret would be sort managing this reporting to her since she's being doing the same thing for 2 years and me and the other girl only for 6 months , which is fine, her title did not got change she didn't got a raise or anything, I question her about everything we do so I can understand and learn as much a I can, if I dont ask she won't tell me why things need to be done and the other girl is very submissive only say yes to everything and don't question any thing, the problem is Margaret ask us to do a lot of things certain ways because her personal preference which is different from other projects and I ask why because I again I supposed to be learning. Oh well yesterday my team leader ask to have a chat I thought might have to do with my pregnancy but no Margaret complain to her team leader who then complain to mine that I didn't want to do what she ask because I question her and said that didn't want this to be a thing (her complain about me).

I'm wrong to feel very Fucking angry and upset ? Like we talked about our personal lifes and stuff she went behind my back, talk to our superiors make me look really bad (it's not enough being pregnant and sick all the dam time) and now wants everything to be like before, I'm the only one that think she's a fake bitch and I should distance myself from her? Because all she doing is trying to power trip me , BTW when she's not there I have no one to ask about my questions and the other girl says heaps of shit about her to me but when shes there she's all yes ma'am to everything