miss euphemia edgar , the spinster teacher who had taken meg in when her parents died and with whom she still lived , warned her against any romantic entanglement which would end her career in teaching .