Piracy is a fact of software development and basically cannot be avoided. Even top companies like Microsoft can't avoid it, so you should be prepared to see piracy of your own games and apps that you release. However usually there are still enough sales to make enough money to keep working from. So while piracy happens and can be frustrating, it doesn't always mean you're ruined.
The main thing with our approach is we want to avoid the paradox of the pirates getting a better product. Typical DRM restrictions might involve legitimate customers having to always be online, or only allowing the software to be used on a certain number of computers. This always causes inconveniences for the paying customers. Then the pirates who use the cracked version don't have to deal with those inconveniences, therefore they have a better product. I've heard real cases of this where paying customers eventually turned to cracked copies of the software, simply because the DRM was so restrictive they couldn't actually use it for the job it was intended for.
So we don't implement any kind of restrictive DRM. We also have a good time-unlimited free edition. So there is no reason to pirate to get around restrictions, nor to "try it out", and hopefully it's cheap enough to avoid piracy because it's "too expensive" (although the economic situation in some countries can still make this awkward).
I hope you understand I don't want to go in to too much detail, but usually the cracked copies cannot be upgraded to the latest version of Construct 2. This means genuine customers are still getting a better product: you get the latest features and bug fixes and performance improvements, and the pirates miss out. On top of that many "cracks" we see are actually just a shared license file (usually with a few hundred megabytes of crapware/adware/spyware/viruses). Legitimate customers get to skip the crapware (the digitally signed installer guarantees this). Also note license files contain your personal information which we can link to your payment details, so we can immediately locate the individuals and payment details involved in these "cracks"!
So: don't impede real customers, try to make sure the pirates get a worse product or service, and that's about the best I think anyone can do.