How can syphilis be prevented?

How can syphilis be prevented?