You could go one of two ways here.
Use the literal translation:
Fac aliis sicut tibi faciant.
Or go with the Latin Vulgate translation of Matthew 7:12
Omnia ergo quaecumque vultis ut faciant vobis homines et vos facite eis
All things therefore whatsoever you would that men should do to you,
do you also to them.