the only advice is to fold preflop, you´re not closing the action, the original raiser is yet to act and what did you do if he comes over the top, yes, you have to fold, you´re wasting your chips in this kind of spot.
if you feel like playing the 3s there, go ahead and 4bet shove, it´s spewy too but much better than the line you took.