Labor question!? Help!

As
I am currently 32+2 with di/di twin boys and 3 days ago I had to go to labor and delivery because of contractions. Turns out they were real and not BH and were about 5 mins apart. However, I wasn't dilated so they were able to give me a shot to stop everything. I keep getting contractions though? Sometimes one or two an hour or up to 10 an hour. And then they stop for a while. My question is: has this happened to anyone else and when did you actually go into labor?