"Don't do X" is bad.
"Don't do X because it's not a best practice" is less bad, but still bad.
"Don't do X because Y" is good.
Only in the last one you can either understand the reason, or ignore the rule because it doesn't apply to your situation.
Only in the last one you can either understand the reason, or ignore the rule because it doesn't apply to your situation.