"Daniel possessed the grace of genuine meekness. He was true, firm, and noble. He sought to live in peace with all, while he was unbending as the lofty cedar wherever principle was involved. In everything that did not come in collision with his allegiance to God, he was respectful and obedient to those who had authority over him; but he had so high a sense of the claims of God that the requirements of earthly rulers were held subordinate. He would not be induced by any selfish consideration to swerve from his duty. SL 20.2"
"Then Peter and the other apostles answered and said, We ought to obey God rather than men."
The EGW passage illustrates the principle of obeying God rather than men, which is explicitly stated in Acts 5:29. Daniel's actions exemplify this principle.
"If it be possible, as much as lieth in you, live peaceably with all men."
Both passages emphasize living peaceably with others. While Romans 12:18 is a general principle, the EGW passage applies it to Daniel's life, showing how he lived peaceably while remaining firm in his principles.