I am sure that things are not quite so bad these days, however Safari's security is still not the best as every year it is routinely defeated by the hackers.Your solution is this:
1) Use Safari, Apple reinforced security and also optimization. Microsoft Edge still lacks updates.
2) Use AdGaurd for Mac only. AdGuard for Mac + AdGuard for Safari is not required. It will make websites break.
3) Activate the function: do not filter websites with extended certification.