Downloading an APK from a reliable source is legal, as long as you’re not obtaining paid apps illegally or infringing on copyright. Even when legal, sideloading (installing an APK from outside the official store) carries risk. Many APKs from untrusted sources contain malware or unsafe modifications.