Limit allowable area where robot can be teached