In some airplanes you can get an ECAM prompting you to keep the gear down, but in IMC in high elevation field, high temperature, max weight and high surrounding terrain… Could be a bad thing. Also, you may consider following the engine out procedure. That should keep u safe.
In VMC, terrain in sight, you can go on according to what you see. Probably doing well most of the times.