Constraints on anomalous fluid in arbitrary dimensions