Complex sentence: Don't use two hyphens (--) to make a dash; and don't use a hyphen for a minus sign.
Split into simpler sentences: Don't use two hyphens--to make a dash. And don't use a hyphen for a minus sign.