How do you know the difference between right and wrong?

Should you live with someone you are not married to?