I'm 35 weeks..

went to the hospital just for a normal checkup & a trace of baby's heart beat. the machine picked up contractions ( I've been feeling the pain but thought they were pregnancy cramps ) 
had my cervix checked & turns out its open but I'm not dilated. Does this mean my baby will b here soon ( days) or can it b weeks?😩 also is sec still safe