Making a section-break read only

How to make a section break read-only. There is an option of a read-only check box inside section-break options but it is not working. I have also tried frm.set_df_property(‘Section Break Name’, ‘read_only’, 1) but it is not working. This script works for particular fields but not for the whole section break. Anyone, please help me on this.