Raw meat, after being brought home from the store in the refrigerator will last a few days before spoiling. In the freezer meat could be kept up to a year frozen solid. While you could theoretically keep it forever, freezer burn will degrade the quality of the meat.
Cooked meat should not be kept out at a range of 40-140 degrees for more than a few hours. Bacteria will start to grow in this range. In the fridge well sealed, a few days.
If you plan to keep raw meat in the fridge for a few days pre marinate the meat, using salt will ward off some bacteria depending on the amount.
When thawing meat, in a filled sink with cold running water.