Protection against electric or thermal overload