Green’s Dictionary of Slang

act the hog v.

also run the hog
[the assumption is that animals are naturally foolish]

[late 19C–1940s] to play the fool.