How to limit max. columns available in the WP gallery settings?

Is there a special way to limit the columns available in the WP gallery settings? The default value is 9; in my opinion it's too much, so I want to limit it to a maximum of 4. I was trying to CSS like this

Option .columns .gallery-settings: nth child (n + 6) {
display: none;
}

with admin_enqueue_scripts action but no results.