Dam owners must comply with law, says minister