Thailand braces for crisis as trials and protests loom