Please don’t do anything to harm the dog like putting down chillies (wtf!). I’m a dog owner and I had this problem. I installed a motion light, dummy cameras and ‘no fouling’ ‘cctv’ signs and that stopped it. Annoying thing is it was my next door neighbour who was letting their dog shit right outside my door!!