are many acts which, being directly injurious only to the agents themselves, ought not to be legally interdicted, but which, if done publicly, are a violation of good manners and coming thus within the category of offences against others may rightfully be prohibited.