Constitution of the Republic of China (Taiwan) Article 52

The President shall not, without having been recalled, or having been relieved of his functions, be liable to criminal prosecution unless he is charged with having committed an act of rebellion or treason.
中文原文 中華民國憲法第52條
總統除犯內亂或外患罪外,非經罷免或解職,不受刑事上之訴究。

English translation for reference only; the Chinese text prevails. Not legal advice.