SC slams denial of bail to give accused a ‘taste of imprisonment as a lesson’