To waste time doing unimportant or silly things.
"We spent the whole morning just messing around instead of packing for the trip."
"Stop messing around and get serious about your future."
— Common parental/coaching expression widely attested in American informal speech.