There are more than God’s laws, there are civil, man-made, laws and natural laws. In the flesh, we are subject to all of these laws. If we do things that are bad for our health, then why should we expect perfect health? If we do something that is contrary to man’s laws, then we will also have to pay man’s consequences. Think you may want to think of Daniel. Also, think you will find the prophets and apostles at many times were subject to punishments or sufferings, some the result of false accusation, some the result of following the ways of God’s word, and some the result of past circumstances or failings.
Dan 3:10Thou, O king, hast made a decree, that every man that shall hear the sound of the cornet, flute, harp, sackbut, psaltery, and dulcimer, and all kinds of musick, shall fall down and worship the golden image: 11And whoso falleth not down and worshippeth, that he should be cast into the midst of a burning fiery furnace. 12There are certain Jews whom thou hast set over the affairs of the province of Babylon, Shadrach, Meshach, and Abednego; these men, O king, have not regarded thee: they serve not thy gods, nor worship the golden image which thou hast set up.
Dan 6:4Then the presidents and princes sought to find occasion against Daniel concerning the kingdom; but they could find none occasion nor fault; forasmuch as he was faithful, neither was there any error or fault found in him. 5Then said these men, We shall not find any occasion against this Daniel, except we find it against him concerning the law of his God.
10Now when Daniel knew that the writing was signed, he went into his house; and his windows being open in his chamber toward Jerusalem, he kneeled upon his knees three times a day, and prayed, and gave thanks before his God, as he did aforetime.