Slayground by Donald E. Westlake (1971) — see its film and TV adaptations.
A dark and memorable account of Parker trapped in a fenced-in amusement park that has closed for the winter.