Surgery for scoliosis is generally indicated when spinal curves exceed 50 degrees, compromise breathing or cause respiratory failure, or when the curve progresses, making it more challenging to treat with surgery.