Learning How to Set Appropriate Boundaries