This is pretty much what VACnet does and theres not much you can do to prevent it as it gets better over time. VACnet seems to have come out of nowhere although it has been around for quite a while now. I personally have never been banned for legit cheating, but i will test soon on my prime account to see what happens.
VACnet Explained (CS:GO Anti-Cheat)
VACnet Explained (CS:GO Anti-Cheat)
VACnet Explained (CS:GO Anti-Cheat)