The expression "knees buckled" means the knees gave way or flexed, usually unintentionally. " I presume, in the usage you cite, it would mean not to let the knees bend inwards as opposed to straight forward during a particular exercise.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.