Freezer is what keeps the fridge cold so if there both failing its the fridge that has a problem first thing to do is clean the back and fan and coils ,cooling fins , if thats not the problem check the compresser fan to see that its running if so compressor could be faulty or need checked leave anything past cleaning and fan replacement to a tech check both fans and clean under it and behind it take plate of the back after its unplugged take big paint brush and shop vac and clean everything you can get to