During slave days this word was used by slaves.A white slave owner would whip slaves creating a cracking sound. The person doing the whipping was known as a cracker.
Here come that cracker, better get to work.