How to stop remote connection/intrusion?

Solution 1:

Disable (uncheck) in System Preferences+Sharing: File Sharing, Screen Sharing, Remote Management, Remote Login + (check in allow access for ?) who has the permission.

also check if there is a user profile set up that is not yours.