Not me; I’m not a Protestant. I’m trying to explain the Protestant position as best as I can understand it, but an actual real live Protestant might authoritatively disagree with me.
I doubt that a Protestant would say that breaking the commandments has no consequences for one’s relationship with God.
Leave aside pork for a moment - unrelated arguments about, e.g. supersession could
be advanced to suggest that this is not a commandment addressed to Christians - and consider a commandment that all Christians accept as directed to them, and binding on them; you must love God with all your heart and strength, and love your neighbour as yourself.
I think a Protestant (or other) Christian would say that more specific commandments to acknowledge God, not to murder, etc can be understood as amplifications or applications of this great commandment.
I think he would also say that fidelity to that commandment, and its more specific corollaries, is the natural outcome of faith in God. “Faith”, remember, is more than simple assertion, and more than simple belief. It calls for a lived, realised belief. Thus, although I may say that I have faith in God and I believe that Jesus Christ is his son, but I am murdering and adultering away to my heart’s content, I don’t actually have life-giving faith. I may have some belief or conviction, but I’m not working it out, or attempting to do so, in how I live. Nor is my life of murder and excess, gratifying as it may be in other respects, calculated to build on my belief and turn it into a realised faith.
So, my avoidance of adultery and giving of alms don’t in themselves save me. But in so far as they are a working out in my life of my belief in God, they not only show but give life and reality to the faith that saves me. Conversely if I engage in adultery and avoid almsgiving, that way of living is a barrier to the realisation of my faith so, yes, it does adversely affect my relationship with God.