Protesting teachers in South Korea are being told they face court action unless they stop their demonstrations.