How to fix falling out electric socket?
You can use a 90 degree, type C plug 



And then fasten to the wall, with a couple of cable clamps



A clamp close to the outlet and it will be difficult to remove, and clamps down or along the wall will keep it safe.

Hope this helps