If you can't stand the heat, keep out of the kitchen

If you can't stand the heat, (keep / get out of the kitchen).

Used to tell somebody to stop trying to do something if they find it too difficult, especially in order to suggest that they are less able than other people

Не можешь, не берись.
Не можешь, нечего и соваться.
[Волков бояться — в лес не ходить]