Thai leader says tensions over protests endanger nation