Advanced AI can learn appropriate social boundaries when given patient guidance and feedback