I have an object that needs to be dragged, but I need to constrain where it can be dragged to.

I need to only move on the X Axis - Left and Right,

And I need it to not be able to go past the right side of the stage, and then to not be able to go past an X value of 50.

Any ideas? Suggestions? Advice? Help? Thanks.