If you want to avoid costly fines, keep these rules in mind.