Density Limits for the Core and Edge Plasmas Related to the Local Temperatures in LHD