It's not an easy poem to interpret but I think your teacher seems to be oversimplifying it rather! There are many different interpretations but sometimes, if you want good marks, you have to go along with your teacher's opinion of something... Anyway, there is some info on Wikipedia on this poem if you search there, which puts forward several different viewpoints and analyses.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.