Being in the mindset of a hacker enables you to view your information security from a new angle and from the feedback and observations you make, you can secure your information better from hackers and ensure that all the targets that are easy prey for your hackers will be fully secured and well away from the hackers.
By thinking like a hacker, you can find out where your hacker will target and the means and approaches they will use to gain access to your information system such as the kind of tools and attack mechanisms they will use. This enables you to be more aware of the security status of your system and when you do this, you will have a stronger, more secure information system that is hacker-proof with nothing getting in the way or entry points being left open for the hacker to get into your systems.
Securing your systems also means that you have an idea of the tricks and mechanisms that a hacker might use to get into your system such as the vulnerabilities they are likely to take advantage of. By having this knowledge in advance, you get to secure your system and get rid of these vulnerabilities thus making it harder for the hacker to get past your firewall.
You also get to arrange your network much more securely in such a manner that nothing will be able to get into your information systems and attack your computers or steal and infect the information that is stored on it. Acting and thinking like a hacker can also be simplified by hiring a white hat hacker or a penetration tester to test your information system, web applications, and databases.
During the penetration testing, your systems are attacked in the same way a hacker would, and from the thoroughness of the attack, the proper security measures are installed and tested to ensure that your system has been proofed against the hackers and is made much more secure from attacks and hackers.
The hacker will have a harder time when you have behaved like them to find out the weaknesses that are on your system and done everything in your power to secure your defenses. As such, the hacker will not be able to attack your weak spots as you will already have discovered them before the hacker and secured them.
Being able to think like the hacker ensures that you design and install your security systems in a manner that is much better than your previous setups and you will have locked out the hacker and no matter what efforts they make to get past your security measures, they will not be able to penetrate your information system. You also get to have better security systems defending your information and at all times, the hacker will be kept out and will not be able to access your information.
This is all you have to do to ensure that the hacker is always kept outside the system without accessing or hurting your digital assets.