"Constrain" means to limit; "restrain" means to hold back. "Constrain" has metaphorical usages, and the things used to constrain are called "constraints,"' which call to mind straps or other unpleasant devices. " I had a moment's puzzlement with your first sentence because I was expecting "unless" to introduce a lack of something desirable.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.