Many of your questions were discussed here
If you are working whilst physically in Switzerland, I believe you should voluntarily declare it even if you are not resident here. Same applies to working in most other countries whilst “on holiday”
A different question is if you don’t declare whether the authorities have a way of finding out