believe that whatever they do in their life does not matter as long as they remember Rama
or Krishna at the time of their death.
They seem not
to understand the shloka very well.
Krishna has emphasized the point that the bhava (thoughts
and wishes) at the end of life is important but this is mostly the bhava that the person
has had all his life.
A person has been having thoughts to kill his wife all his
life will most likely have the same thought at the end of his life.
A person that has been praying all his life to Rama or Guru
Nanak will most likely have thoughts corresponding to that.