is it Legal to install Kill region for playing foreign DVDs ?

All computers only allows to switch "regions" 5 fixed times. Why ? and is it Legal to install Kill region for playing foreign DVDs after the 5 times are up
ff