Working out and Pregnant?

Did anyone workout when pregnant and what range in your heart rate did your OB say to keep it at? I go to a gym that that is HIIT based and basically tries to get your heart rate up high to make you burn more calories, sometimes it worries me at how high it gets and how I would be able to workout if I was pregnant, I would want to keep the baby safe.