APKs are not legal in any way and it is always better to use an official app store like Google Play Store for downloading apps rather than risking your device by using APKs.