Set credit limit in customer

Hello, i want to set credit limit in particular customer using client script on list
i apply

frappe.db.set_value(‘Customer’,‘customer_name’,‘credit_limit’,‘value’);
it’s not work how to i set it