Is it illegal if you tip the basketball to yourself 2-3 times?

One my friend is big guy If the defender surrounding him and he try tip the ball in the air couple of times to secure the rebound, would it be illegal if the ball didn’t touch the defender, rim or board
2 answers 2