To play around in a silly manner.
To fool around.
To waste time with unimportant activities, often used as an admonition to urge the other party to stop wasting time.