Make mistakes yes, but not ones that can cause danger to yourself or others.
Flying instruction should take the student up to the point of the mistake, allow them to recognise it and prevent the same occurrence happening in the future. It should absolutely NEVER put the student or others in danger.
There are many preventative checks and processes that should have prevented this incident occurring. Better to understand and practice those than find yourself in this situation in the first place.