Surge protection for binary signals and EX ia signals