‘Rules as Code’ will let computers apply laws and regulations. But over-rigid interpretations would undermine our freedoms