I think what set him off was your phrasing/tone, especially the "Then you should choose another job" line.
The advice was good and you certainly meant well.
However, it's easy for people to misunderstand your intent via text since we do not have audiovisual cues.
^^ Just keep that in mind when you offer advice and hopefully you shouldn't run into these frustrations.