The "rule" you mention is absurd. It would mean that no comma should be used after cold: The town was cold dark, and, inhospitable. My suggestion: The town was cold, dark and inhospitable.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.