I assume you refer to the OT laws. We've had lots of discussions on this in the past, really. This can get to be a heated topic and I don't like heated topics, so I'd prefer to avoid debate, but if I may I would like to briefly add my two cents.
The OT laws are not unacceptable, simply outdated. (The sanitation laws are the most demonstrably obvious example of this.) They were the national laws for ancient Israel (national laws change over time due to circumstance and need), and they were based on the 10 commandments, which I think could be described as the spirit of the law. Obviously the 10 commandments still apply.
That aside, here's the context of John 5:47:
Verse 46: "For had ye believed Moses, ye would have believed me:
for uhe wrote of me."
Based on this it doesn't appear to me that Jesus was referring to the law of Moses. Rather it seems to refer moreso to what Moses wrote that foreshadows Jesus.