Definition (behavior)
to act in a foolish manner, particularly in a way that might lead to hazardous outcomes
He was fooling around near the edge of the cliff and almost fell off.
Don’t fool around in the lab, the chemicals here are dangerous.
They were fooling around at home without realizing that it could lead to serious consequences.