A woman has told a court how she was “scared to death” of a former boyfriend in the moments before the man suffered a stab wound to his abdomen.