For me, knee pain means I'm not doing something quite right. To prevent it, I try to make sure that I am keeping my toes turned out and allowing my ankle to articulate fully. I find that if my knees hurt, I tend to tense up the whole leg, but if the ankle isn't moving freely, it just transmits all the stress straight to the knee.