To fool around.
To waste time with unimportant activities, often used as an admonition to urge the other party to stop wasting time.
To act foolishly.