the game, 1590s, apparently from Old French criquet "goal post, stick," perhaps from Middle Dutch/Middle Flemish cricke "stick, staff," perhaps from the same root as crutch. Sense of "fair play" is first recorded 1851, on notion of "cricket as it should be played."
1834, from goal (n.) + post (n.1). To move the goal posts as a figurative expression for "cheat by changing the objectives after the process has begun" is by 1988.