AnyDesk’s official website occasionally keeps legacy builds in their "release notes" section. Try this URL pattern (do not trust random mirrors): https://download.anydesk.com/old/
Once you have the legitimate installer, follow these steps: anydesk 5.2.2 download