fuller definition
The definition of Hacker I grew up with was: Someone who comes up with a unique solution to a problem, usually faster to implement and run. It only solves the immediate problem, not the whole class of problems. They also do not document what they did.
So Hacker has been an insult for a long time. Adding criminal aspect was from looking at the code.