What should you not do at the gym during pregnancy?

Is there a point in when you shouldn't go to the gym, like early or late pregnancy?