A MAN who was caught performing a sex act near the beach in Prestonpans has been placed on the sex offenders' register for 24 months.