That advice is backwards. Pedaling at a low cadence generally puts more strain on the knees, so climbing in a lower gear while seated would most likely cause less knee stress than climbing while standing in a higher gear. Switching from a triple to a compact double would mean that you would lose some of the lower gears that allow you to spin at a higher cadence.