No, it is not recommended that Swiss residents or any other foreigners overstay their electronic visas in Tanzania. Overstaying your visa's validity term is considered a breach of Tanzania immigration regulations and can result in penalties, deportation, and limits on future travel to Tanzania.
The electronic visa (eVisa) for Tanzania determines the length of stay permitted to travelers. It is critical to adhere to the period of stay specified on your e-Visa and leave the country before it expires. If you need to prolong your stay in Tanzania, you should contact the local immigration officials or the Department of Immigration for assistance and complete the necessary procedures to acquire a visa extension if you are qualified.
Overstaying a visa can have major repercussions, including difficulties in obtaining future visas and even legal consequences. It's always a good idea to follow immigration rules and have legal documents for the duration of your stay in Tanzania or any other country you visit.