Human rights advocates and legal scholars have condemned the measure , saying it will force people to report on their neighbors to avoid prison terms .