Sheriffs don’t get to exercise judicial review. If they don’t like a law then tough, they can try to get them changed but until then they’re required to uphold it. If they think a law is unconstitutional then they can challenge the law in court, but unless and until it’s overturned, they are required to enforce that law. That’s how the constitution and our legal system work. Individuals don’t get to decide what is and isn’t constitutional and ignore laws they deem to be unconstitutional. You’re asserting the theory of nullification, which has been ruled invalid at every level from individuals to states.
I can only assume which side you’d have rooted for in the Civil War.