A skateboarding youth does a trick on a rail.
A man painting a tree.
A skateboarding youth cannot be the same person as a man painting.
A youth is not a man.  Skateboading on a rail is not painting a tree.
The man wouldn't let the man do a trick on a rail while he's painting a tree