Some things means like a object or a person, you cant seem to put them in the past and maybe you have memories or bad memories with "it." So they dont belong in the past because thats your to remember.
I think this sentence would be better if we put an additional 'the' before the word 'students' So the sentence will become : it could be dangerous to carelessly teach grammar to the students