Green’s Dictionary of Slang

crap! excl.

also craps! by craps!

[late 19C+] a general excl.

In exclamations

like crap!

[1940s] (US) a general intensifier, usu. negative.