It would seem reasonable to suggest that if a pax is "having a go" under the direction of a pilot who has no instructor rating, then the pax is receiving unlicensed flight instruction.
If it was OK where does "having a go" end, you might as well let them "have a go" at takeoff and landing as well.
I also agree that proving it's not OK using the regs is a bit of a challenge
CF