How to set limits on the position of a body during assembly?

I have these two threaded cylinders and I don't want the one rotating(outer) to separate from the one fixed(inner). How do I do that?

SolidworksAssemblies