Drag in Bounderies

Hello ppl! i would to know how to drag a mC withins the bounderies of another one.
Could anyone help me?