If the law commands what God forbids or forbids what God commands then you must break the law. But the problem with that simple guideline is that much of the civil disobedience in history has involved doing things that are not clearly commanded by God.