To behave in a playful or silly way, especially when one should be focused or serious.
"The kids were fooling around in the garden instead of coming in for dinner."
Stop fooling around and get to work.
— Common idiom, widely cited in American popular culture