Singapore’s long-ruling government is reacting to discontent about rising prices, foreign workers and a sluggish economy with unprecedented openness but threats of lawsuits show it remains testy with critics deemed to have crossed the line.