For these loop preventions scenario i use either two options
1) Filter R1 from learning 22.214.171.124/32 inbound in OSPF. That way, it'ld be learnt via RIP
2) Change the AD per prefix 126.96.36.199/32 on OSPF. This will affect on the prefix 188.8.131.52/32
If i have my way, i always avoid playing with the AD.