Depends on the circumstances. If it was adapted and registered as a moped, with number plate and (free) tax disc, and you were wearing a motorcycle helmet then nothing at all, provided you didn't commit any motoring offences, since the Highway Code would be deemed to apply to you in the same way...