How to avoid disabling internet and GPS?
If you have root access or adb on that device you could use an device automation tool like MacroDroid and make it re-enable the gps and 4g if it is turned off
Triggers would be gps disabled and mobile service status -> diabled
and Actions would be location mode -> high accuracy and mobile data -> on
If you also want to lock wifi then add trigger: wifi state changed -> disabled and action wifi configure -> turn on
In end enable password protection in the settings to prevent anyone to disable the macro