I am not a teacher.
As far as I'm concerned 'the' is ðə before a consonant, ðɪ before a vowel and ðiː when stressed.
The 'th' is always the same.
I think it is bad advice to tell you not to pronounce the 'd' in 'end'.
Is your English teacher a native speaker? If so, where is she from?
Interested in Language