Question: how to teach cats not to scratch?
Answer: Use deterrents. Stick double-sided tape on furniture, which makes the surface unpleasant for cats. Use feline pheromone spray, which reduces the cat's desire to scent-mark. Spray the cat with a water bottle if they're scratching somewhere other than a scratching post.