constrain (one) from (doing something)
To prevent or hinder one from doing something. For years, stage fright constrained me from singing in public.
constrain someone from doing something
to prevent someone from doing something; to hold someone back from doing something. I hope this doesn't constrain you from trying out for the play. His handicap did not constrain him from finishing the race.