"criminals" and "democratic states" are very subjective terms.
But still no good solution.
And criminal would be too far, as such spyware should only be used against extremely serious crimes, e.g. warcrimes or terrorism
What you call serious crimes are highly political topics. Ones hero is anothers war criminal, and the same guy may be both freedom fighter and terrorist, depending who you ask.