'Danger to let him out': Man granted bail after alleged knif