function onEdit(e) {
const sh =SpreadsheetApp.getActiveSpreadsheet().getActiveSheet();
if(e.range.columnStart !=4) return;
let protection = sh.getRange(e.range.rowStart,1,1,sh.getMaxColumns()).protect();
protection.removeEditors(protection.getEditors());
if(protection.canDomainEdit()){
protection.setDomainEdit(false);
}
}